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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x88]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
lea ecx, [eax + eax]
lea ebx, [ecx + 1]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], ebp
mov dword [esp], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], ecx
call fcn.004041a0
test byte [esp + 0x48], 1
mov dword [esp + 0xc], ebx
je 0x411700
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], edi
call fcn.004041a0
mov dword [esp + 0xc], 1
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], edi
call fcn.00404300
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x411840
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00404250
mov dword [esp + 0xc], 2
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00404300
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], 4
mov edx, dword [esp + 0x34]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ecx
lea edx, [edx + eax*4]
mov dword [esp + 8], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp], edx
call fcn.00419080
mov edx, dword [esp + 0x28]
mov dword [edx], eax
mov eax, dword [esp + 0x38]
add eax, 1
jne 0x4117e8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
lea ecx, [eax*8]
shl eax, 4
sub edx, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], edx
test byte [esp + 0x48], 2
je 0x411718
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004041a0
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], 1
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.00404300
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.00404250
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00418ec7
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x411740
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4117a8
mov eax, dword [esp + 0x28]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x2d
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00418d07
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 4], ebp
mov dword [esp], ebp
call fcn.00404300
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00404250
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x55555555
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.004172b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.00404250
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 4], ebp
call fcn.00404250
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00419080
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp], ebp
call fcn.00404250
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x38e38e39
mov dword [esp + 0xc], 9
mov dword [esp + 4], ebp
mov dword [esp], ebp
call fcn.00416670
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.00404250
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x11111111
call fcn.004172b0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], edi
mov dword [esp + 8], ebp
call fcn.004041a0
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], edi
mov dword [esp + 0xc], 1
call fcn.00404300
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], ebp
call fcn.00404250
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
lea edx, [eax*4]
neg eax
mov dword [esp + 0x34], edx
lea edx, [ecx + eax*4]
mov dword [esp + 4], edx
mov dword [esp], edx
mov dword [esp + 0x28], edx
call fcn.004041a0
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov ecx, eax
lea eax, [edi + edi*2]
lea eax, [ebx + eax*4 + 4]
add dword [eax], ecx
jae 0x41162c
add dword [eax + 4], 1
lea eax, [eax + 4]
jb 0x411623
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x30]
add ebx, edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.004041a0
mov ecx, dword [esp + 0x34]
mov edx, edi
add ebx, ecx
add edx, ecx
mov edi, edx
add eax, dword [ebx]
add dword [edx], eax
jae 0x41166d
add dword [edx + 4], 1
lea edx, [edx + 4]
jb 0x411664
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
call fcn.004041a0
mov ecx, dword [esp + 0x2c]
add esi, dword [esp + 0x34]
mov edx, esi
add eax, dword [edi + ecx*4]
add dword [edx], eax
jae 0x41169f
add dword [edx + 4], 1
lea edx, [edx + 4]
jb 0x411696
add ebx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov edi, ecx
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004041a0
mov ecx, dword [esp + 0x34]
add eax, dword [esi + edi*4]
add ecx, ebp
mov edx, ecx
add dword [edx], eax
jae 0x4116d1
add dword [edx + 4], 1
lea edx, [edx + 4]
jb 0x4116c8
mov esi, dword [esp + 0x38]
lea eax, [edi + 1]
cmp esi, eax
jg 0x411878
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004041a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00404250
jmp 0x41131f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00404250
jmp 0x411402
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], edx
call fcn.00404250
test eax, eax
je 0x411462
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], edi
jmp 0x411791
mov edx, dword [ecx + eax*4]
add eax, 1
lea edi, [edx - 1]
mov dword [ecx + eax*4 - 4], edi
test edx, edx
jne 0x411795
cmp ebx, eax
jg 0x411780
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
test eax, eax
je 0x41146e
lea esi, [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.00404250
test eax, eax
je 0x41146e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
sub dword [eax + edx], 1
jmp 0x41146e
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00404250
test eax, eax
je 0x4113bf
mov edx, dword [esp + 0x28]
jmp 0x41182d
mov eax, dword [esi + edx*4]
add edx, 1
lea ecx, [eax - 1]
mov dword [esi + edx*4 - 4], ecx
test eax, eax
jne 0x4113bf
cmp ebx, edx
jg 0x411818
jmp 0x4113bf
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], esi
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.00404250
test eax, eax
je 0x411343
mov eax, dword [esp + 0x40]
sub dword [esi + eax*4], 1
jmp 0x411343
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004041a0
mov esi, dword [esp + 0x3c]
mov edx, eax
imul eax, dword [esp + 0x2c], 0x1c
lea eax, [esi + eax + 4]
add dword [eax], edx
jae 0x4118ac
add dword [eax + 4], 1
lea eax, [eax + 4]
jb 0x4118a3
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret