Function at 0x408150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0xe8], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x2c], esi
cmp dword [esi], edx
jne 0x40818d
mov eax, 0x80004005
jmp 0x408653
mov eax, dword [ebp + 0x14]
mov ebx, edx
mov dword [esi + 4], eax
mov byte [esp + 0x12], 1
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
push 0x18
pop edi
test ecx, ecx
je 0x408290
lea eax, [esp + 0x34]
mov byte [esp + 0x12], dl
push eax
push 0x3b
pop edx
call fcn.004101b0
mov ebx, dword [esp + 0x3c]
mov eax, ebx
mov esi, dword [esp + 0x38]
sub eax, esi
cdq
idiv edi
pop ecx
test eax, eax
je 0x408212
mov edi, esi
mov esi, eax
push 0x44c794
mov edx, 0x44c810
mov ecx, edi
call fcn.0040c590
pop ecx
push 0x5c
push 0x2f
pop edx
mov ecx, edi
call fcn.0040c660
add esp, 4
mov edx, 0x44c814
call fcn.0040c720
add edi, 0x18
dec esi
jne 0x4081da
mov esi, dword [esp + 0x34]
push 0x18
pop edi
cmp esi, ebx
je 0x408282
add esi, 0x18
mov dword [esp + 0x1c], esi
cmp dword [esi - 8], 0
jne 0x40826b
mov edi, esi
cmp esi, ebx
je 0x408240
push 0xffffffffffffffe8
pop esi
push edi
lea ecx, [edi + esi]
call fcn.00401f36
add edi, 0x18
cmp edi, ebx
jne 0x40822c
mov esi, dword [esp + 0x1c]
lea eax, [ebx - 0x18]
mov dword [esp + 0x18], eax
mov edi, eax
lea eax, [ebx - 0x18]
cmp eax, ebx
je 0x408262
push 0
push 1
mov ecx, edi
call fcn.004017f1
add edi, 0x18
cmp edi, ebx
jne 0x408250
mov ebx, dword [esp + 0x18]
push 0x18
pop edi
jmp 0x408271
add esi, edi
mov dword [esp + 0x1c], esi
lea eax, [esi - 0x18]
cmp eax, ebx
jne 0x40821d
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x34], ebx
jne 0x40828c
mov esi, 0x80004005
jmp 0x408648
mov esi, dword [esp + 0x2c]
push dword [esp + 0x40]
lea ecx, [esp + 0x9c]
call fcn.00401f0e
cmp dword [esp + 0xa8], 0
je 0x4082b9
push 0x10
pop edx
lea ecx, [esp + 0x98]
call fcn.0040cc20
mov edi, dword [esi]
mov dword [esp + 0x54], edi
test edi, edi
je 0x4082ca
mov ecx, edi
call fcn.00410fb0
lea ecx, [esi + 8]
call fcn.0040892e
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x4082e6
mov esi, 0x80004005
jmp 0x40862d
xor eax, eax
lea edx, [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x40860d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x408466
xor edx, edx
mov dword [esp + 0x14], edx
test eax, eax
je 0x40845c
lea ecx, [esp + 0x70]
mov byte [esp + 0x13], 0
call fcn.00410ff0
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x70]
push esi
push 6
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
jne 0x40846d
cmp dword [esp + 0x70], 4
jne 0x40836b
mov eax, dword [esp + 0x90]
or eax, dword [esp + 0x94]
je 0x40836b
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x70]
call fcn.004110d0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x70]
push edx
push 3
push dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
jne 0x40846d
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x5c]
call fcn.00401f0e
cmp byte [esp + 0x12], 0
je 0x408400
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x2c]
mov ecx, eax
mov esi, eax
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x14]
cmp byte [edx + 0xd], 0
jne 0x4083cf
cmp dword [edx + 0x10], ecx
jae 0x4083c9
mov edx, dword [edx + 8]
jmp 0x4083b9
mov esi, edx
mov edx, dword [edx]
jmp 0x4083b9
mov edx, eax
cmp esi, edx
je 0x4083e4
cmp ecx, dword [esi + 0x10]
jb 0x4083e4
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x50]
jmp 0x4083ec
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x44]
cmp dword [ecx], eax
jne 0x408433
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.00408749
jmp 0x408433
cmp byte [esp + 0x13], 0
jne 0x408433
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x408433
mov edx, esi
lea ecx, [esp + 0x58]
call fcn.0040c4f0
test al, al
je 0x40842c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.00408749
add esi, 0x18
cmp esi, ebx
jne 0x40840f
push 0
push 1
lea ecx, [esp + 0x60]
call fcn.004017f1
lea ecx, [esp + 0x70]
call fcn.00411060
mov edx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x30]
jb 0x408326
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x24]
jne 0x40847b
xor esi, esi
jmp 0x40860d
lea ecx, [esp + 0x70]
call fcn.00411060
jmp 0x40860d
push 0x150
call fcn.00436b2f
pop ecx
test eax, eax
je 0x408499
mov ecx, eax
call fcn.00416ebc
mov ebx, eax
mov dword [esp + 0x14], eax
jmp 0x40849f
xor ebx, ebx
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4084a8
lea eax, [ebx + 8]
jmp 0x4084aa
xor eax, eax
push eax
lea ecx, [esp + 0x1c]
call fcn.00408979
mov eax, dword [ebp + 0x10]
sub esp, 0x14
movzx eax, al
push eax
mov eax, dword [ebp + 0xc]
movzx eax, al
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.004174dd
lea ecx, [esp + 0xb0]
call fcn.0040d310
mov ebx, dword [esp + 0x2c]
lea edx, [esp + 0xb0]
lea esi, [ebx + 0x14]
mov ecx, esi
call fcn.0040e850
and dword [esp + 0x68], 0
lea ecx, [esp + 0x58]
xor eax, eax
mov dword [esp + 0x6c], 7
push 0x44c794
mov word [esp + 0x5c], ax
call fcn.004016c8
xor eax, eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
push eax
push esi
sub esp, 0xc
push dword [esp + 0xe8]
push dword [esp + 0xe8]
push ecx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x68]
push ecx
push eax
push ecx
push dword [ebx + 0x10]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
push ebx
call fcn.004172e5
lea ecx, [esp + 0x44]
call fcn.00401880
push 0
push 1
lea ecx, [esp + 0x60]
call fcn.004017f1
cmp byte [esp + 0x12], 0
je 0x40858d
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
cmp dword [ecx + 0x30], 0
cmove eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov esi, dword [ebx]
lea ecx, [esp + 0x18]
call fcn.0040892e
push eax
push 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call dword [esi + 0x20]
mov esi, eax
test esi, esi
jne 0x4085f8
cmp byte [esp + 0x12], al
jne 0x4085f8
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4085f8
mov edi, dword [esp + 0x2c]
movzx eax, byte [0x45de31]
push eax
lea eax, [ecx + ebx*4]
push eax
push ecx
lea eax, [esp + 0x50]
push eax
lea ecx, [edi + 0x2c]
call fcn.0040899d
mov eax, dword [esp + 0x24]
inc ebx
mov ecx, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4085c8
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0xb0]
call fcn.0040d3b0
lea ecx, [esp + 0x18]
call fcn.00408922
cmp dword [esp + 0x20], 0
je 0x40862d
push dword [esp + 0x20]
call fcn.004368cb
and dword [esp + 0x24], 0
and dword [esp + 0x28], 0
and dword [esp + 0x2c], 0
pop ecx
test edi, edi
je 0x408638
mov ecx, edi
call fcn.00410fc0
push 0
push 1
lea ecx, [esp + 0xa0]
call fcn.004017f1
lea ecx, [esp + 0x34]
call fcn.00401880
mov eax, esi
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435a0a
mov esp, ebp
pop ebp
ret 0x14