Function at 0x42a420
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a05fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
mov edx, dword [esp + 0x1e4]
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x4dd44]
mov ecx, 0x19
mov dword [esp + 0x3c], eax
xor eax, eax
lea edi, [esp + 0xb4]
add edx, 6
rep stosd dword es:[edi], eax
mov ax, word [edx - 2]
mov cx, word [edx]
mov word [esp + 0x40], cx
xor ecx, ecx
mov dword [esp + 0x20], ecx
add edx, 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
mov ax, word [edx]
mov dword [esp + 0x28], ecx
add edx, 2
mov dword [esp + 0x2c], ecx
mov word [esp + 0x38], ax
mov dword [esp + 0x30], ecx
mov eax, edx
mov byte [esp + 0x34], cl
mov bl, byte [edx + 0xa]
add edx, 0xa
mov ecx, dword [eax]
inc edx
mov dword [esp + 0x20], ecx
mov byte [esp + 0x10], bl
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
mov ax, word [eax + 8]
mov word [esp + 0x28], ax
mov eax, dword [ebp + 0x4c374]
test eax, eax
je 0x42a52f
mov ecx, 5
lea edi, [esp + 0x20]
lea esi, [ebp + 0x4e918]
xor ebx, ebx
repe cmpsw word [esi], word es:[edi]
je 0x42a52b
mov esi, dword [eax + 8]
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov edi, esi
mov dword [esp + 0x48], ecx
xor eax, eax
mov dword [esp + 0x4c], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x44]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 5
lea edi, [esp + 0x20]
lea esi, [esp + 0x44]
repe cmpsw word [esi], word es:[edi]
je 0x42a955
mov bl, byte [esp + 0x10]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x50]
lea esi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test bl, bl
rep movsb byte es:[edi], byte [esi]
je 0x42a56d
cmp bl, 2
je 0x42a56d
cmp bl, 3
jne 0x42a585
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x36074]
call fcn.0048fc00
test eax, eax
je 0x42a955
mov eax, dword [ebp + 0x4ef14]
test eax, eax
jne 0x42a598
cmp bl, 0x14
je 0x42a955
mov eax, dword [ebp + 0x4ef18]
test eax, eax
jne 0x42a5b4
cmp bl, 2
je 0x42a955
cmp bl, 3
je 0x42a955
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xb4]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0xbc]
push 0x4a7114
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp + 0x6004]
call fcn.00402250
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x36048]
lea edx, [esp + 0xb4]
push 0x131
push edx
push eax
lea ecx, [ebp + 0x36074]
call fcn.00490060
mov ebx, eax
xor eax, eax
test ebx, ebx
jle 0x42a633
mov cl, byte [esp + eax + 0xb4]
test cl, cl
jge 0x42a628
inc esi
inc eax
cmp eax, ebx
jl 0x42a61c
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x42a803
movsx ecx, si
and ecx, reloc.dsound.dll_DirectSoundCreate
jns 0x42a649
dec ecx
or ecx, 0xfffffffe
inc ecx
mov ecx, 0x19
jne 0x42a72b
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, ebx
lea esi, [esp + 0xb4]
mov edx, ecx
lea edi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
call fcn.0042a380
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + ebx + 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0xb4]
rep stosd dword es:[edi], eax
mov edi, 0x4a7110
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
jmp 0x42a5f5
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [ebx + 1]
lea esi, [esp + 0xb4]
mov eax, ecx
lea edi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x50]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.0042a380
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + ebx + 0xb5]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0xb4]
rep stosd dword es:[edi], eax
mov edi, 0x4a7110
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
jmp 0x42a5f5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xb4]
push eax
push ecx
mov ecx, ebp
call fcn.0042a380
lea ecx, [ebp + 0x6004]
call fcn.00402290
lea edi, [ebp + 0x4a268]
mov ebx, 0x1f3
mov esi, edi
mov ecx, dword [esi]
test ecx, ecx
je 0x42a850
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
cmp eax, edx
jne 0x42a850
test ecx, ecx
je 0x42a84a
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
add esi, 4
dec ebx
jne 0x42a82f
mov esi, 1
mov eax, edi
cmp dword [eax], 0
je 0x42a873
inc esi
add eax, 4
cmp esi, 0x1f4
jl 0x42a85d
jmp 0x42a955
push 0x18
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1e8], edi
je 0x42a8aa
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 1
mov ecx, eax
call fcn.00490220
jmp 0x42a8ac
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword [ebp + esi*4 + 0x4a264], eax
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x38]
push esi
push eax
push ecx
mov ecx, dword [ebp + 0x4a258]
mov dword [esp + 0x1f4], 0xffffffff
call fcn.004885d0
test eax, eax
jne 0x42a8f7
mov ecx, dword [ebp + esi*4 + 0x4a264]
cmp ecx, edi
je 0x42a8f0
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebp + esi*4 + 0x4a264], edi
mov al, byte [esp + 0x10]
test al, al
je 0x42a955
lea ecx, [ebp + 0x4e304]
call fcn.00491a60
cmp eax, 1
je 0x42a955
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x118]
lea edx, [esp + 0x118]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x4a7108
push edx
call dword [sym.imp.user32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x118]
push 1
push eax
push ecx
mov ecx, ebp
call fcn.0040fba0
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1dc
ret 4