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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
cmp dword [esi + 0x195], 0
lea edx, [esi + 0x155]
push edi
mov dword [esp + 0x14], edx
je 0x40b27c
cmp dword [edx], 0xffffffff
je 0x40b27c
cmp dword [edx + 4], 0
jle 0x40b27c
cmp dword [edx + 8], 0
jg 0x40b39e
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
xor eax, eax
mov edi, edx
call fcn.004ce820
mov ecx, dword [ebx + 8]
push ecx
mov ecx, dword [ebx + 4]
lea edi, [esi + 0x1a5]
xor eax, eax
call fcn.004ce820
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
lea edi, [esi + 0x1f5]
push edx
xor eax, eax
call fcn.004ce820
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x40], 0
je 0x40b5ab
cmp dword [eax], 0xffffffff
je 0x40b5ab
cmp dword [eax + 4], 0
jle 0x40b5ab
cmp dword [eax + 8], 0
jle 0x40b5ab
cmp dword [esi + 0x1e5], 0
je 0x40b5ab
cmp dword [esi + 0x1a5], 0xffffffff
je 0x40b5ab
cmp dword [esi + 0x1a9], 0
jle 0x40b5ab
cmp dword [esi + 0x1ad], 0
jle 0x40b5ab
cmp dword [edi + 0x40], 0
je 0x40b5ab
cmp dword [edi], 0xffffffff
je 0x40b5ab
cmp dword [edi + 4], 0
jle 0x40b5ab
cmp dword [edi + 8], 0
jle 0x40b5ab
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x13], 0xfd
call fcn.004d19f0
lea eax, [esi + 0x1a5]
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x13], 0xfd
call fcn.004d19f0
push edi
lea eax, [esp + 0x10]
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x13], 0xfd
call fcn.004d19f0
mov edx, dword [esp + 0x14]
cmp dword [esi + 0x285], 0
lea edi, [esi + 0x245]
mov dword [esp + 0x1c], edi
je 0x40b3c2
cmp dword [edi], 0xffffffff
je 0x40b3c2
cmp dword [edi + 4], 0
jle 0x40b3c2
cmp dword [edi + 8], 0
jg 0x40b40c
mov eax, dword [esi + 0x15d]
mov ecx, dword [esi + 0x159]
push eax
xor eax, eax
call fcn.004ce820
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x1a], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x1b], 0xff
mov dword [esp + 0x24], 0x6dbbf0
call fcn.004d1750
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.004d39b0
lea eax, [esi + 0x1a5]
push 0
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], eax
call fcn.004d39b0
add esi, 0x1f5
push 0
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], esi
call fcn.004d39b0
push 0
push ebx
lea ecx, [esp + 0x40]
call fcn.004d39b0
push 0
push edi
lea ecx, [esp + 0x60]
call fcn.004d39b0
mov ecx, dword [ebx + 0x44]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x70]
test edi, edi
je 0x40b59b
cmp edi, dword [esp + 0x28]
jb 0x40b59b
cmp edi, dword [esp + 0x2c]
ja 0x40b59b
test eax, eax
je 0x40b59b
cmp eax, dword [esp + 0x48]
jb 0x40b59b
cmp eax, dword [esp + 0x4c]
ja 0x40b59b
test ecx, ecx
je 0x40b59b
cmp ecx, dword [esp + 0x68]
jb 0x40b59b
cmp ecx, dword [esp + 0x6c]
ja 0x40b59b
test edx, edx
je 0x40b59b
cmp edx, dword [esp + 0x38]
jb 0x40b59b
cmp edx, dword [esp + 0x3c]
ja 0x40b59b
test ebx, ebx
je 0x40b59b
cmp ebx, dword [esp + 0x58]
jb 0x40b59b
cmp ebx, dword [esp + 0x5c]
ja 0x40b59b
cmp dword [esp + 0x20], 0
jbe 0x40b56e
sub ebx, edx
lea esi, [edx + 3]
mov edx, ecx
mov ecx, dword [esp + 0x20]
add ecx, 0xffffffff
sub edx, eax
shr ecx, 2
sub edi, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], edx
add ecx, 1
lea ebx, [ebx]
mov dl, byte [esi]
cmp dl, byte [ebx + esi]
ja 0x40b54f
mov edx, dword [eax]
mov ebx, dword [esp + 0x24]
mov dword [ebx + eax], edx
mov edx, dword [edi + eax]
mov ebx, dword [esp + 0x10]
mov dword [eax], edx
mov edx, dword [esi - 3]
mov dword [edi + eax], edx
add esi, 4
add eax, 4
sub ecx, 1
jne 0x40b530
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
add edi, dword [esp + 0x34]
add eax, dword [esp + 0x54]
add ecx, dword [esp + 0x74]
add edx, dword [esp + 0x44]
add ebx, dword [esp + 0x64]
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x60], ebx
jmp 0x40b477
cmp dword [0x7b71f4], 2
jge 0x40b5b6
add dword [0x7b71f4], 1
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x40]
test eax, eax
mov edi, 8
je 0x40b5d0
cmp dword [eax + 8], edi
sete al
test al, al
jne 0x40b5e2
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call fcn.004d1e60
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40b5f7
cmp dword [eax + 8], edi
sete al
test al, al
jne 0x40b609
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0
call fcn.004d1e60
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40b61e
cmp dword [eax + 8], edi
sete al
test al, al
jne 0x40b630
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0
call fcn.004d1e60
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40b645
cmp dword [eax + 8], edi
sete al
test al, al
jne 0x40b657
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call fcn.004d1e60
fld1
mov dword [esp + 0x278], 0x10
fstp dword [esp + 0x78]
call fcn.00627890
cmp byte [0x73651b], 0
je 0x40b5ab
cmp dword [esi], 0xffffffff
je 0x40b68d
cmp dword [esi + 4], 0
jle 0x40b68d
cmp dword [esi + 8], 0
mov eax, esi
jg 0x40b691
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push esi
lea ecx, [esp + 0x8c]
push ecx
push 0x733428
call fcn.0062b700
test al, al
je 0x40b5ab
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4