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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
xor ebp, ebp
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.00411b60
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x411872
mov ebx, dword [esi + 0x34]
cmp ebx, ebp
jne 0x41160c
lea eax, [esp + 0x40]
push 0x377f0682
push eax
call fcn.0040ef60
lea ecx, [esp + 0x4c]
push 0x2de218
push ecx
call fcn.0040ef60
mov ebp, dword [esp + 0x78]
lea edx, [esp + 0x58]
push ebp
push edx
call fcn.0040ef60
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.0040ef60
lea edi, [esi + 0x44]
push edi
push 8
call fcn.0040a2d0
mov edx, dword [edi]
mov eax, dword [edi + 4]
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edx
push ecx
push 0
lea edx, [esp + 0x70]
push 0x18
push edx
push 1
mov dword [esp + 0x90], eax
call fcn.00411880
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x94]
push eax
push ecx
call fcn.0040ef60
mov edx, dword [esp + 0x60]
add esp, 0x44
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.0040ef60
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0x50]
push 0x20
push eax
push ecx
mov dword [esi + 0x18], ebp
mov byte [esi + 0x31], 0
mov dword [esi + 0x40], edx
call fcn.0040dcb0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x411610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x64], eax
je 0x4116df
lea eax, [ebp + 0x18]
cdq
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc ebx
push edx
mov dword [esp + 0x1c], ebx
dec ebx
push eax
push 0
push ebx
call fcn.00453dd0
mov edi, eax
mov eax, dword [esp + 0x74]
mov ebx, edx
add edi, 0x20
adc ebx, 0
test eax, eax
je 0x411667
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x411667
mov eax, dword [esp + 0x70]
jmp 0x411669
xor eax, eax
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x28]
push ecx
mov ebp, dword [edx]
push ebp
push eax
mov eax, dword [edx + 0xc]
push eax
push esi
call fcn.004119e0
mov edx, dword [esi + 8]
push ebx
push edi
lea ecx, [esp + 0x44]
push 0x18
push ecx
push edx
call fcn.0040dcb0
add esp, 0x28
test eax, eax
jne 0x411874
mov ecx, dword [esi + 8]
add edi, 0x18
adc ebx, eax
mov eax, dword [esp + 0x68]
push ebx
push edi
push eax
push ebp
push ecx
call fcn.0040dcb0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x411872
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x64], eax
jne 0x41162c
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4117ea
mov edx, dword [esi + 8]
push edx
call fcn.00410a60
cdq
mov ebp, eax
mov eax, dword [esp + 0x6c]
add esp, 4
add eax, 0x18
mov dword [esp + 0x1c], edx
cdq
push 0
push ebx
push edx
push eax
call fcn.00453dd0
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov edi, edx
add ebx, 0x20
adc edi, 0
mov ecx, ebx
add ecx, ebp
mov edx, edi
adc edx, eax
sub ecx, 1
sbb edx, 0
push eax
push ebp
push edx
push ecx
call fcn.00453ed0
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push edx
push eax
call fcn.00453dd0
cmp edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jg 0x4117d3
jl 0x411758
cmp ebx, eax
jae 0x4117d3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x28]
mov ebp, dword [edx]
push eax
mov eax, dword [edx + 0xc]
push ebp
push ecx
push eax
push esi
call fcn.004119e0
mov edx, dword [esi + 8]
push edi
push ebx
lea ecx, [esp + 0x44]
push 0x18
push ecx
push edx
call fcn.0040dcb0
add esp, 0x28
test eax, eax
jne 0x411874
mov ecx, dword [esi + 8]
add ebx, 0x18
adc edi, eax
mov eax, dword [esp + 0x68]
push edi
push ebx
push eax
push ebp
push ecx
call fcn.0040dcb0
add esp, 0x14
test eax, eax
jne 0x411874
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
cdq
add ebx, eax
mov eax, dword [esp + 0x1c]
adc edi, edx
cmp edi, eax
jl 0x411758
jg 0x4117d3
cmp ebx, dword [esp + 0x18]
jb 0x411758
mov edx, dword [esp + 0x78]
mov eax, dword [esi + 8]
push edx
push eax
call fcn.0040e850
mov edi, eax
mov eax, dword [esp + 0x74]
add esp, 8
mov ebx, dword [esi + 0x34]
mov ebp, eax
test eax, eax
je 0x41180f
test edi, edi
jne 0x41180f
mov ecx, dword [ebp + 0xc]
inc ebx
push ecx
push ebx
push esi
call fcn.00411a60
mov ebp, dword [ebp + 8]
add esp, 0xc
test ebp, ebp
mov edi, eax
jne 0x4117f3
mov ebp, dword [esp + 0x14]
test ebp, ebp
jle 0x411835
test edi, edi
jne 0x411872
mov edx, dword [esp + 0x10]
inc ebx
dec ebp
mov eax, dword [edx + 0xc]
push eax
push ebx
push esi
call fcn.00411a60
add esp, 0xc
mov edi, eax
test ebp, ebp
jg 0x411817
test edi, edi
jne 0x411872
mov eax, dword [esp + 0x68]
mov dword [esi + 0x34], ebx
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x74]
test eax, eax
mov word [esi + 0x32], cx
je 0x411872
mov edx, dword [esi + 0x2c]
push esi
inc edx
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x38], edx
call fcn.00411950
add esp, 4
mov dword [esi + 0xc], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret