Function at 0x40c640
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb0]
cmp dword [eax], 0x16
ja case.0x40c663.156
mov edx, dword [eax]
jmp dword [edx*4 + 0x4c2584]
test ebp, ebp
mov ebx, dword [eax + 4]
je 0x40d9e7
mov eax, dword [ebx]
lea esi, [esp + 0x5c]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call fcn.00402670
mov eax, dword [ebx + 4]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 8]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc], 0xc
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov eax, dword [ebx + 8]
test eax, eax
jne 0x40d984
mov ecx, dword [esp + 0xb4]
lea eax, [ecx + eax*4 + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [eax + 4]
mov eax, dword [esp + 0xb4]
test edi, edi
mov dword [esp + 0x18], eax
je 0x40c6f2
lea ebx, [esp + 0x5c]
lea esi, [esp + 0x5e]
nop
lea esi, [esi]
test ebp, ebp
je 0x40c7a1
mov eax, dword [edi]
xor edx, edx
test eax, eax
sete dl
shl edx, 7
or edx, dword [edi + 4]
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], edx
call fcn.004025d0
mov edx, dword [edi + 8]
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], edx
call fcn.004025d0
mov edx, dword [edi + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x60]
mov dword [esp + 4], edx
call fcn.004025d0
lea edx, [esp + 0x62]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.004025d0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], 8
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov edi, dword [edi]
add dword [esp + 0x18], 8
test edi, edi
jne 0x40c720
jmp 0x40c6f2
test ebp, ebp
mov ebx, dword [eax + 4]
je 0x40c7de
test ebx, ebx
je 0x40c7de
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov eax, dword [eax + 8]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004024a0
add ebx, dword [esp + 0xb4]
mov dword [esp + 0x18], ebx
jmp 0x40c6f2
test ebp, ebp
mov ebx, dword [eax + 4]
je 0x40db3c
mov eax, dword [ebx]
lea esi, [esp + 0x5c]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call fcn.004025d0
mov eax, dword [ebx + 4]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x5e]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], esi
mov dword [esp + 0xc], 4
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0xb4]
test eax, eax
lea esi, [ecx + 4]
jne 0x40d9ef
add eax, esi
mov dword [esp + 0x18], eax
jmp 0x40c6f2
mov edi, dword [eax + 4]
mov eax, dword [esp + 0xb4]
xor esi, esi
add eax, 6
test edi, edi
mov ecx, eax
mov dword [esp + 0x18], eax
je 0x40c986
lea ebx, [esp + 0x5c]
mov eax, esi
mov esi, ecx
lea esi, [esi]
test ebp, ebp
je 0x40c970
movzx edx, byte [edi + 4]
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
call fcn.00402560
movzx edx, byte [edi + 5]
lea eax, [esp + 0x5d]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00402560
movzx edx, byte [edi + 6]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x5e]
mov dword [esp + 4], edx
call fcn.00402560
lea edx, [esp + 0x5f]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00402560
mov edx, dword [edi + 8]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x60]
mov dword [esp + 4], edx
call fcn.004025d0
mov edx, dword [edi + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x62]
mov dword [esp + 4], edx
call fcn.004025d0
mov edx, dword [edi + 0x10]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x64]
mov dword [esp + 4], edx
call fcn.00402670
mov edx, dword [edi + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x68]
mov dword [esp + 4], edx
call fcn.004025d0
mov dword [esp + 0xc], 0xe
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.004024a0
mov eax, dword [esp + 0x14]
mov edi, dword [edi]
add esi, 0xe
add eax, 1
test edi, edi
jne 0x40c890
mov dword [esp + 0x18], esi
mov esi, eax
test ebp, ebp
je 0x40c6f2
lea ebx, [esp + 0x5c]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.004025d0
lea eax, [esp + 0x5e]
mov dword [esp + 8], 1
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
mov dword [esp + 8], esi
lea eax, [esp + 0x60]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
mov dword [esp + 0xc], 6
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov eax, dword [esp + 0x18]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 4]
mov dword [esp], ebx
call fcn.004021f0
test ebp, ebp
mov dword [esp + 0x24], eax
je 0x40db4e
test eax, eax
je 0x40d863
lea eax, [esp + 0x5c]
mov dword [esp + 8], 1
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
lea eax, [esp + 0x5e]
mov dword [esp + 8], 0xffff
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40dc4a
mov eax, dword [eax]
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 4]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 8]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x6e]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 0x10]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x72]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x74]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esp + 0xb4]
lea edx, [eax + 0x1a]
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, ebp
call fcn.0040a010
mov edx, dword [ebx + 0x24]
mov dword [esp], edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x2c]
mov dword [esp + 8], edx
mov edx, eax
mov eax, ebp
call fcn.0040a010
mov ecx, dword [ebx + 0x30]
mov edx, eax
mov eax, ebp
call fcn.00409cb0
test byte [ebx], 0x40
mov dword [esp + 0x18], eax
je 0x40db27
mov eax, dword [ebx + 0x34]
lea esi, [esp + 0x44]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call fcn.004025d0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40dc6c
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
lea eax, [esp + 0x46]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40dc65
movzx eax, byte [eax + 8]
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00402560
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40dc5b
movzx eax, byte [eax + 9]
mov dword [esp + 8], eax
lea eax, [esp + 0x49]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00402560
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], 6
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov edx, 6
add edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x38]
mov eax, ebp
call fcn.00409cb0
mov esi, dword [ebx + 0x40]
mov dword [esp + 0x18], eax
test esi, esi
je 0x40dabd
cmp dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
lea edi, [esp + 0x44]
sbb eax, eax
and eax, 0xfffffffa
add eax, 0x18
mov dword [esp + 0x28], eax
jmp 0x40cda5
mov eax, dword [esi + 8]
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.00402670
mov eax, dword [esi + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [esi + 0x10]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esi + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x4e]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esi + 0x18]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esi + 0x1c]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x52]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esi + 4]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.004025d0
mov dword [esp + 0xc], 0x12
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.004024a0
mov eax, dword [esp + 0x28]
lea edx, [ebx + eax]
mov eax, dword [esi + 0x20]
mov dword [esp], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 8], eax
mov eax, ebp
call fcn.0040a010
mov edx, dword [esi + 0x2c]
mov dword [esp], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 4], edx
mov edx, dword [esi + 0x34]
mov dword [esp + 8], edx
mov edx, eax
mov eax, ebp
call fcn.0040a010
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
add eax, 2
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x40da10
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0xb4]
sub ebx, eax
and ebx, 3
add ebx, eax
mov eax, ebp
mov edx, ebx
call fcn.0040a180
cmp ebx, eax
mov dword [esp + 0x18], eax
je 0x40da31
mov eax, dword [esp + 0x18]
mov dword [esp + 4], edi
mov dword [esp], ebp
sub eax, ebx
mov dword [esp + 8], eax
call fcn.004025d0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 2
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov esi, dword [esi]
add dword [esp + 0x20], 1
test esi, esi
je 0x40dac5
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0xb4]
sub ebx, eax
and ebx, 3
add ebx, eax
test ebp, ebp
je 0x40da40
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40cc33
mov eax, dword [esi + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.00402670
mov eax, dword [esi + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [esi + 8]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [esi + 0x10]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esi + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x52]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esi + 0x18]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esi + 0x1c]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x56]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esi + 4]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
call fcn.00402670
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.004024a0
jmp 0x40cce8
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
sub eax, 0xffffff80
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x40cf7c
lea eax, [esi + esi + 2]
test ebp, ebp
mov dword [esp + 0x20], eax
je 0x40cf52
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.00401b30
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov ebx, eax
mov dword [esp], ebp
mov dword [esp + 0x24], eax
call fcn.004025d0
test esi, esi
je 0x40cf32
lea edi, [ebx + 2]
mov dword [esp + 0x14], esi
xor eax, eax
mov esi, edi
mov edi, dword [esp + 0x2c]
lea ebx, [eax + 1]
movzx eax, word [edi + eax*2]
mov dword [esp + 4], esi
mov dword [esp], ebp
add esi, 2
mov dword [esp + 8], eax
call fcn.004025d0
cmp dword [esp + 0x14], ebx
mov eax, ebx
jne 0x40cf10
mov eax, dword [esp + 0x20]
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.004024a0
add dword [esp + 0x1c], 8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], ecx
cmp eax, dword [esp + 0x28]
je 0x40c6f2
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x40cec4
test ebp, ebp
mov dword [esp + 0x20], 2
je 0x40cf52
mov dword [esp], 2
call fcn.00401b30
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 0x24], eax
call fcn.004025d0
jmp 0x40cf32
mov eax, dword [eax + 4]
mov ecx, str.VS_VERSION_INFO
mov ebx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb4]
lea edx, [eax + 6]
mov eax, ebp
call fcn.0040a2e0
mov edx, dword [esp + 0xb4]
mov ebx, dword [ebx]
sub edx, eax
and edx, 3
add eax, edx
test ebx, ebx
mov edi, eax
mov dword [esp + 0x18], eax
je 0x40d148
test ebp, ebp
je 0x40d143
lea esi, [esp + 0x5c]
mov dword [esp + 8], 0xfeef04bd
mov dword [esp], ebp
mov dword [esp + 4], esi
call fcn.00402670
lea eax, [esp + 0x60]
mov dword [esp + 8], 0x10000
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 4]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 8]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 0x10]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x74]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 0x18]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 0x1c]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 0x20]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 0x24]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x88]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 0x28]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.00402670
mov dword [esp + 0xc], 0x34
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.004024a0
add dword [esp + 0x18], 0x34
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x20], eax
je 0x40d5ef
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xb4]
sub edx, ecx
and edx, 3
lea eax, [edx + ecx]
mov dword [esp + 0x24], eax
lea edx, [eax + 6]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
test eax, eax
je 0x40d645
cmp eax, 1
je 0x40d444
call sub.msvcrt.dll_abort
mov ebx, dword [eax + 4]
mov dword [esp], ebx
call fcn.00402250
test ebp, ebp
je 0x40dbc5
test eax, eax
jne 0x40d7e1
lea esi, [esp + 0x5c]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], esi
call fcn.004025d0
lea eax, [esp + 0x5e]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc], 4
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov eax, dword [esp + 0xb4]
mov ecx, dword [ebx]
lea edx, [eax + 4]
mov eax, ebp
call fcn.00409dc0
mov dword [esp + 0x18], eax
jmp 0x40c6f2
mov edi, dword [eax + 4]
mov eax, dword [esp + 0xb4]
xor esi, esi
add eax, 6
test edi, edi
mov ecx, eax
mov dword [esp + 0x18], eax
je 0x40d304
lea ebx, [esp + 0x5c]
mov eax, esi
mov esi, ecx
lea esi, [esi]
test ebp, ebp
je 0x40d2ee
mov edx, dword [edi + 4]
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
call fcn.004025d0
mov edx, dword [edi + 8]
lea eax, [esp + 0x5e]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004025d0
mov edx, dword [edi + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x60]
mov dword [esp + 4], edx
call fcn.004025d0
mov edx, dword [edi + 0x10]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x62]
mov dword [esp + 4], edx
call fcn.004025d0
mov edx, dword [edi + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x64]
mov dword [esp + 4], edx
call fcn.00402670
mov edx, dword [edi + 0x18]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [esp + 0x68]
mov dword [esp + 4], edx
call fcn.004025d0
mov dword [esp + 0xc], 0xe
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.004024a0
mov eax, dword [esp + 0x14]
mov edi, dword [edi]
add esi, 0xe
add eax, 1
test edi, edi
jne 0x40d240
mov dword [esp + 0x18], esi
mov esi, eax
test ebp, ebp
je 0x40c6f2
lea ebx, [esp + 0x44]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.004025d0
lea eax, [esp + 0x46]
mov dword [esp + 8], 2
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
lea eax, [esp + 0x48]
mov dword [esp + 8], esi
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
mov dword [esp + 0xc], 6
jmp 0x40c9da
mov edi, dword [eax + 4]
mov eax, dword [esp + 0xb4]
xor ebx, ebx
add eax, 2
test edi, edi
mov dword [esp + 0x18], eax
je 0x40d41b
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x5c]
mov ebx, edi
mov edi, eax
jmp 0x40d3d1
mov edx, dword [ebx + 4]
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], edx
call fcn.004025d0
mov dword [esp + 0xc], 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.004024a0
mov edx, dword [ebx + 8]
test edx, edx
jne 0x40d3f4
mov ebx, dword [ebx]
add dword [esp + 0x14], 1
lea edi, [edx + edi + 2]
test ebx, ebx
je 0x40d413
test ebp, ebp
jne 0x40d390
mov edx, dword [ebx + 8]
jmp 0x40d3c2
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xb4]
mov eax, ebp
call fcn.0040a180
mov dword [esp + 0x18], eax
jmp 0x40c6f2
mov dword [esp + 0xc], edx
lea edx, [edi + 2]
mov dword [esp + 8], edx
mov edx, dword [ebx + 0xc]
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.004024a0
mov edx, dword [ebx + 8]
jmp 0x40d3c2
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
test ebp, ebp
je 0x40c6f2
mov dword [esp + 8], ebx
lea ebx, [esp + 0x5c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.004025d0
mov dword [esp + 0xc], 2
jmp 0x40c9da
mov ecx, 0x4c24a3
mov eax, ebp
call fcn.0040a2e0
mov ebx, dword [esp + 0xb4]
mov edi, dword [esp + 0x20]
sub ebx, eax
mov ecx, dword [edi + 8]
and ebx, 3
add ebx, eax
mov eax, ebp
lea edx, [ebx + 6]
call fcn.00409cb0
mov esi, dword [esp + 0xb4]
mov edi, dword [edi + 0xc]
sub esi, eax
and esi, 3
add esi, eax
test edi, edi
mov ecx, esi
je 0x40d4ed
mov dword [esp + 0x14], ebx
mov ebx, edi
mov edi, esi
nop
test ebp, ebp
je 0x40d4de
mov edx, dword [ebx + 4]
lea eax, [esp + 0x5c]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004025d0
mov edx, dword [ebx + 8]
lea eax, [esp + 0x5e]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004025d0
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], edi
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004024a0
mov ebx, dword [ebx]
add edi, 4
test ebx, ebx
jne 0x40d490
mov ebx, dword [esp + 0x14]
mov ecx, edi
test ebp, ebp
je 0x40d5d9
mov edx, ecx
lea eax, [esp + 0x5c]
mov dword [esp], ebp
sub edx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.004025d0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x5e]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov edx, ecx
sub edx, esi
mov dword [esp + 8], edx
call fcn.004025d0
lea edx, [esp + 0x60]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.004025d0
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], 6
mov dword [esp + 8], ebx
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004024a0
mov ecx, dword [esp + 0x14]
test ebp, ebp
je 0x40d5d9
mov ebx, dword [esp + 0x24]
mov edx, ecx
lea eax, [esp + 0x5c]
mov dword [esp], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
sub edx, ebx
mov dword [esp + 8], edx
call fcn.004025d0
lea eax, [esp + 0x5e]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
lea edx, [esp + 0x60]
mov dword [esp + 8], 1
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.004025d0
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], 6
mov dword [esp + 8], ebx
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004024a0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x40d15f
mov dword [esp + 0x18], ecx
test ebp, ebp
je 0x40c6f2
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0xb4]
lea ebx, [esp + 0x5c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004025d0
mov eax, dword [esp + 0x28]
cmp dword [eax], 1
mov dword [esp], ebp
sbb eax, eax
not eax
and eax, 0x34
mov dword [esp + 8], eax
lea eax, [esp + 0x5e]
mov dword [esp + 4], eax
call fcn.004025d0
mov dword [esp + 8], 0
jmp 0x40c9c2
mov ecx, 0x4c23b3
mov eax, ebp
call fcn.0040a2e0
mov ecx, eax
mov eax, dword [esp + 0x20]
mov ebx, ecx
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x18], eax
je 0x40dbd2
nop
lea esi, [esi]
mov edx, dword [esp + 0xb4]
mov edi, dword [esp + 0x18]
sub edx, ebx
mov ecx, dword [edi + 4]
and edx, 3
lea eax, [edx + ebx]
lea edx, [eax + 6]
mov dword [esp + 0x1c], eax
mov eax, ebp
call fcn.00409cb0
mov edi, dword [edi + 8]
mov ebx, eax
test edi, edi
je 0x40d75c
mov eax, ebx
mov ebx, edi
mov esi, dword [esp + 0xb4]
mov ecx, dword [ebx + 4]
sub esi, eax
and esi, 3
add esi, eax
mov eax, ebp
lea edx, [esi + 6]
call fcn.00409cb0
mov edi, dword [esp + 0xb4]
mov ecx, dword [ebx + 8]
sub edi, eax
and edi, 3
add edi, eax
mov eax, ebp
mov edx, edi
call fcn.00409cb0
test ebp, ebp
je 0x40d750
mov edx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5c]
sub edx, esi
mov dword [esp], ebp
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esp + 0x14]
mov dword [esp], ebp
mov edx, eax
lea eax, [esp + 0x5e]
sub edx, edi
shr edx, 1
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004025d0
lea edx, [esp + 0x60]
mov dword [esp + 8], 1
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.004025d0
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], 6
mov dword [esp + 8], esi
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004024a0
mov eax, dword [esp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40d6a5
mov ebx, eax
test ebp, ebp
je 0x40d7c8
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
mov edx, ebx
mov dword [esp], ebp
mov dword [esp + 4], eax
sub edx, edi
mov dword [esp + 8], edx
call fcn.004025d0
lea eax, [esp + 0x5e]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
lea edx, [esp + 0x60]
mov dword [esp + 8], 1
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.004025d0
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], 6
mov dword [esp + 8], edi
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004024a0
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40d670
mov ecx, ebx
jmp 0x40d565
lea esi, [esp + 0x5c]
mov dword [esp + 8], 1
mov dword [esp], ebp
mov dword [esp + 4], esi
call fcn.004025d0
lea eax, [esp + 0x5e]
mov dword [esp + 8], 4
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 4]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc], 8
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov eax, dword [esp + 0xb4]
mov ecx, dword [ebx]
lea edx, [eax + 8]
mov eax, ebp
call fcn.00409eb0
mov dword [esp + 0x18], eax
jmp 0x40c6f2
mov eax, dword [ebx]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x32]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 4]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x36]
mov dword [esp + 4], eax
call fcn.00402670
mov eax, dword [ebx + 8]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x3e]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 0x10]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [ebx + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x42]
mov dword [esp + 4], eax
call fcn.004025d0
mov eax, dword [esp + 0xb4]
lea edx, [eax + 0x12]
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, ebp
call fcn.0040a010
mov edx, dword [ebx + 0x24]
mov dword [esp], edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x2c]
mov dword [esp + 8], edx
mov edx, eax
mov eax, ebp
call fcn.0040a010
mov ecx, dword [ebx + 0x30]
mov edx, eax
mov eax, ebp
call fcn.00409cb0
test byte [ebx], 0x40
mov dword [esp + 0x18], eax
je 0x40db27
mov eax, dword [ebx + 0x34]
lea esi, [esp + 0x5c]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call fcn.004025d0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], 2
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.004024a0
mov edx, 2
jmp 0x40cbf4
shl eax, 2
xor esi, esi
mov dword [esp], eax
call fcn.00401b30
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
test edi, edi
je 0x40d9c5
mov dword [esp + 0x18], ebx
mov ebx, eax
mov edx, dword [edi + 0xc]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea edx, [ebx + esi]
add esi, 4
mov dword [esp + 4], edx
call fcn.00402670
mov edi, dword [edi]
test edi, edi
jne 0x40d9a2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc], esi
mov dword [esp], ebp
add eax, 0xc
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.004024a0
mov eax, dword [ebx + 8]
jmp 0x40c6e3
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov eax, dword [ebx + 0xc]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004024a0
mov eax, dword [ebx + 8]
jmp 0x40c85a
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.004025d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x40cd7a
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
jmp 0x40cd64
mov eax, dword [esp + 0x28]
lea edx, [ebx + eax]
mov eax, dword [esi + 0x20]
mov dword [esp], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 8], eax
xor eax, eax
call fcn.0040a010
mov edx, dword [esi + 0x2c]
mov dword [esp], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 4], edx
mov edx, dword [esi + 0x34]
mov dword [esp + 8], edx
mov edx, eax
xor eax, eax
call fcn.0040a010
mov ecx, dword [esi + 0x38]
add eax, 2
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x40cd96
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0xb4]
sub ebx, eax
and ebx, 3
add ebx, eax
xor eax, eax
mov edx, ebx
call fcn.0040a180
cmp ebx, eax
je 0x40cd96
mov dword [esp + 0x18], eax
jmp 0x40cd96
mov dword [esp + 0x20], 0
test ebp, ebp
je 0x40c6f2
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40dafe
mov eax, dword [esp + 0x20]
mov dword [esp], ebp
lea ebx, [esp + 0x32]
mov dword [esp + 8], eax
lea eax, [esp + 0x3a]
mov dword [esp + 4], eax
call fcn.004025d0
mov dword [esp + 0xc], 0x12
jmp 0x40c9da
mov eax, dword [esp + 0x20]
mov dword [esp], ebp
lea ebx, [esp + 0x5c]
mov dword [esp + 8], eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.004025d0
mov dword [esp + 0xc], 0x1a
jmp 0x40c9da
mov esi, dword [ebx + 0x40]
test esi, esi
jne 0x40cc11
mov dword [esp + 0x20], 0
jmp 0x40dacd
mov eax, dword [esp + 0xb4]
lea esi, [eax + 4]
mov eax, dword [ebx + 8]
jmp 0x40c85a
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40dbe5
mov eax, dword [esp + 0xb4]
lea edx, [eax + 0x1a]
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
xor eax, eax
call fcn.0040a010
mov edx, dword [ebx + 0x24]
mov dword [esp], edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x2c]
mov dword [esp + 8], edx
mov edx, eax
xor eax, eax
call fcn.0040a010
mov ecx, dword [ebx + 0x30]
mov edx, eax
xor eax, eax
call fcn.00409cb0
test byte [ebx], 0x40
mov dword [esp + 0x18], eax
jne 0x40dc51
mov esi, dword [ebx + 0x40]
test esi, esi
jne 0x40cc11
jmp 0x40c6f2
test eax, eax
jne 0x40d847
jmp 0x40d1fc
mov edx, dword [esp + 0xb4]
sub edx, ecx
and edx, 3
add ecx, edx
jmp 0x40d565
mov eax, dword [esp + 0xb4]
lea edx, [eax + 0x12]
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
xor eax, eax
call fcn.0040a010
mov edx, dword [ebx + 0x24]
mov dword [esp], edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x2c]
mov dword [esp + 8], edx
mov edx, eax
xor eax, eax
call fcn.0040a010
mov ecx, dword [ebx + 0x30]
mov edx, eax
xor eax, eax
call fcn.00409cb0
test byte [ebx], 0x40
mov dword [esp + 0x18], eax
je 0x40dbb5
mov edx, 2
jmp 0x40cbf4
xor eax, eax
jmp 0x40ca5c
mov edx, 6
jmp 0x40cbf4
mov eax, 1
jmp 0x40cbbf
xor eax, eax
jmp 0x40cb9c
xor eax, eax
jmp 0x40cb79