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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x7c]
mov eax, edi
sub eax, ebp
mov ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x80
jle 0x4153d0
sar eax, 3
cdq
mov ecx, dword [esp + 0x80]
sub eax, edx
sar eax, 1
push ebp
mov ebx, ebp
lea esi, [ebp + eax*8]
push esi
call fcn.0040aef0
test al, al
je 0x415288
mov ebx, esi
mov esi, ebp
mov ecx, dword [esp + 0x80]
lea eax, [edi - 8]
push esi
push eax
call fcn.0040aef0
test al, al
je 0x4152a0
lea esi, [edi - 8]
mov ecx, dword [esp + 0x80]
push ebx
push esi
call fcn.0040aef0
test al, al
je 0x4152b4
mov esi, ebx
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x7c]
cmp ebp, eax
mov dword [esp + 0x6c], edx
mov ebx, ebp
mov esi, ebp
jae 0x415344
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x84]
push esi
call fcn.0040aef0
test al, al
je 0x4152e8
add esi, 8
jmp 0x415340
lea edx, [esp + 0x6c]
mov ecx, esi
push edx
call fcn.0040b7f0
test al, al
je 0x415328
mov ecx, ebx
mov eax, esi
add ebx, 8
add esi, 8
mov edx, dword [ecx]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x68], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x415340
mov edx, dword [edi - 8]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub edi, 8
mov dword [esi], edx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov dword [edi], eax
mov dword [edi + 4], ecx
cmp esi, edi
jb 0x4152cd
cmp ebp, ebx
mov esi, edi
mov eax, ebp
je 0x415373
mov edx, dword [eax + 4]
mov ecx, dword [eax]
sub esi, 8
mov dword [esp + 0x60], edx
add eax, 8
mov edx, dword [esi]
cmp eax, ebx
mov dword [eax - 8], edx
mov edx, dword [esi + 4]
mov dword [eax - 4], edx
mov dword [esi], ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 4], ecx
jne 0x41534c
mov eax, dword [esp + 0x7c]
mov ecx, esi
mov edx, eax
sub ecx, ebp
sub edx, edi
and ecx, 0xfffffff8
and edx, 0xfffffff8
cmp ecx, edx
jle 0x4153a1
mov edx, dword [esp + 0x80]
push edx
push eax
push edi
call fcn.00415240
add esp, 0xc
mov dword [esp + 0x7c], esi
jmp 0x4153b5
mov eax, dword [esp + 0x80]
push eax
push esi
push ebp
call fcn.00415240
add esp, 0xc
mov ebp, edi
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x7c]
sub eax, ebp
mov ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x80
jg 0x415264
cmp ebp, edi
je 0x415696
lea esi, [ebp + 8]
cmp esi, edi
mov dword [esp + 0x14], esi
je 0x415696
mov edx, dword [esi]
mov eax, dword [esi + 4]
cmp esi, ebp
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov ebx, esi
jbe 0x41567a
add esi, 0xfffffff8
lea ecx, [esp + 0x6c]
push ecx
call fcn.00409b40
push esi
mov edi, eax
call fcn.00409b40
add esp, 8
test edi, edi
je 0x415428
test eax, eax
je 0x415428
cmp edi, eax
setb al
jmp 0x415656
lea edx, [esp + 0x18]
lea ecx, [esp + 0x6c]
push edx
call fcn.0040b720
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x7c], eax
call fcn.0040b720
mov edx, dword [eax]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x84], edx
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x415547
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x415547
lea edx, [esp + 0x28]
mov ecx, esi
push edx
call fcn.0040b770
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x74]
call fcn.0040b770
mov ecx, eax
call fcn.00408550
test al, al
je 0x415519
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x70]
call fcn.0040b760
mov edx, dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.00408070
test eax, eax
je 0x415672
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.0040b760
push eax
lea ecx, [esp + 0x14]
call fcn.00408550
test al, al
jne 0x41565a
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00408080
mov edx, dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.00408070
test eax, eax
je 0x415672
jmp 0x4154d4
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x6c]
push eax
call fcn.0040b770
mov ecx, dword [eax]
lea edx, [esp + 0x40]
mov dword [esp + 0x78], ecx
push edx
mov ecx, esi
call fcn.0040b770
mov eax, dword [eax]
mov dword [esp + 0x80], eax
jmp 0x4155f2
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x70]
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x4155a0
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.0040b720
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x74]
call fcn.0040b770
mov ecx, eax
call fcn.00408550
test al, al
jne 0x415672
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x70]
call fcn.0040b770
mov edx, dword [eax]
mov dword [esp + 0x78], edx
jmp 0x4155f2
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x4155f2
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x70]
call fcn.0040b720
lea edx, [esp + 0x5c]
push eax
push edx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.00408550
test al, al
jne 0x41565a
lea eax, [esp + 0x64]
mov ecx, esi
push eax
call fcn.0040b770
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x80]
lea ecx, [esp + 0x78]
push edx
call fcn.00408550
test al, al
jne 0x415672
lea ecx, [esp + 0x78]
call fcn.00408f40
test al, al
jne 0x415645
lea ecx, [esp + 0x80]
call fcn.00408f40
test al, al
jne 0x415645
lea ecx, [esp + 0x80]
call fcn.0040b990
push eax
lea ecx, [esp + 0x7c]
call fcn.0040b990
push eax
call fcn.00409a80
add esp, 8
jmp 0x415656
lea eax, [esp + 0x80]
lea ecx, [esp + 0x78]
push eax
call fcn.00408590
test al, al
je 0x415672
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
sub ebx, 8
sub esi, 8
cmp ebx, ebp
ja 0x415401
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
add esi, 8
mov dword [ebx], eax
cmp esi, edi
mov dword [ebx + 4], ecx
mov dword [esp + 0x14], esi
jne 0x4153e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret