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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov dword [esp + 0x28], ebx
push edi
mov edx, dword [ebx + 0xdc]
mov edi, esi
mov dword [esp + 0x20], esi
mov eax, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], edx
mov dword [ebx + 0xdc], esi
mov dword [esp + 0x28], esi
cmp eax, dword [ebx + 0xe0]
jge 0x4116a2
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x4116a2
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x411695
push ecx
call eax
mov edx, dword [esp + 0x34]
mov edi, eax
pop ecx
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
test edi, edi
je 0x411673
mov dword [esp + 0x28], edi
mov dword [ebx + 0xdc], edx
test edi, edi
jne 0x4119f5
mov eax, dword [ebx + 4]
test eax, eax
jle 0x411716
mov edx, dword [ebx + 8]
mov edi, eax
add edx, 4
mov ebx, esi
mov ecx, dword [edx]
call fcn.0040fcf2
test eax, eax
je 0x4116e3
xor ecx, ecx
inc ecx
mov eax, ecx
mov dword [esp + 0x24], eax
cmp ebx, ecx
je 0x4116e7
inc dword [esp + 0x20]
jmp 0x4116e7
mov eax, dword [esp + 0x24]
inc ebx
add edx, 0x18
cmp ebx, edi
jl 0x4116c5
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x411716
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x411716
push dword [ebx + 0x74]
call eax
mov edi, eax
pop ecx
test edi, edi
je 0x411716
push 0x13
pop eax
jmp 0x4119f7
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c]
mov ecx, eax
mov dword [esp + 0x28], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41172d
sub ecx, edx
je 0x411a05
xor eax, eax
inc eax
cmp dword [esp + 0x20], eax
jle 0x411a05
mov ecx, dword [ebx]
xorps xmm0, xmm0
mov dword [esp + 0x14], ecx
mov edi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
movlpd qword [esp + 0x38], xmm0
push edi
call fcn.00403f89
pop ecx
push 4
lea edx, [esp + 0x34]
pop ecx
call fcn.00405578
mov eax, dword [esp + 0x30]
and eax, 0x7fffffff
push eax
push dword [esp + 0x2c]
push str._s_mj_08X
push ebx
call fcn.004053a6
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
je 0x4119fe
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
call dword [eax + 0x20]
add esp, 0xc
test eax, eax
jne 0x411762
push ecx
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
mov edx, edi
call fcn.00403bed
mov ecx, eax
add esp, 0xc
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x4117df
push edi
call fcn.00403f89
mov eax, dword [esp + 0x10]
pop ecx
jmp 0x4119f7
mov eax, esi
mov dword [esp + 0x18], eax
cmp dword [ebx + 4], esi
jle 0x41193b
mov edx, dword [esp + 0x3c]
mov ecx, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
xor edx, edx
mov dword [esp + 0x1c], ecx
inc edx
cmp eax, edx
je 0x4118dd
mov eax, dword [ebx + 8]
mov edx, dword [ecx + eax + 4]
mov ecx, edx
mov dword [esp + 0x38], edx
call fcn.0040fcf2
test eax, eax
je 0x4118d2
mov eax, dword [edx + 4]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov ecx, dword [eax + 0x60]
mov dword [esp + 0x30], ecx
cmp byte [ecx], 0
je 0x4118d2
cmp dword [esp + 0x20], esi
jne 0x411879
mov ecx, edx
call fcn.00409f8a
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x38]
mov bl, byte [eax + 0xb]
call fcn.00409fed
mov eax, dword [esp + 0x20]
test bl, bl
mov ebx, dword [esp + 0x2c]
push 1
pop ecx
cmove eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x38], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x411882
sub edx, dword [esp + 0x38]
push dword [esp + 0x28]
push dword [esp + 0x28]
lea eax, [edx + 1]
mov edx, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.00403bd5
mov edx, dword [esp + 0x3c]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0xc], ecx
lea eax, [edx + 1]
mov dword [esp + 0x38], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4118b8
sub edx, dword [esp + 0x38]
lea eax, [edx + 1]
add dword [esp + 0x24], eax
adc dword [esp + 0x28], esi
test ecx, ecx
jne 0x411920
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [esp + 0x1c]
inc edx
inc eax
add ecx, 0x18
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp eax, dword [ebx + 4]
jl 0x411807
cmp dword [esp + 0x20], esi
je 0x41193b
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
pop ecx
test eax, 0x400
jne 0x41193b
mov ecx, dword [esp + 0x10]
push 2
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [esp + 0x14], eax
pop ecx
pop ecx
test eax, eax
je 0x41193f
mov ecx, dword [esp + 0x10]
call fcn.00403c38
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
call dword [eax + 0x1c]
add esp, 0xc
jmp 0x4117cf
mov eax, dword [esp + 0xc]
mov ecx, esi
mov dword [esp + 0x30], ecx
test eax, eax
jne 0x41198a
mov edx, esi
mov dword [esp + 0x2c], esi
cmp ecx, dword [ebx + 4]
jge 0x41198a
mov eax, dword [ebx + 8]
mov eax, dword [edx + eax + 4]
test eax, eax
je 0x411976
mov edx, edi
mov ecx, eax
call fcn.0040bbfd
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
jmp 0x41197a
mov eax, dword [esp + 0xc]
inc ecx
add edx, 0x18
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
test eax, eax
je 0x41194f
mov ecx, dword [esp + 0x10]
call fcn.00403c38
cmp dword [esp + 0xc], esi
jne 0x4117cf
xor eax, eax
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [eax + 0x1c]
add esp, 0xc
mov edi, eax
push dword [esp + 0x44]
call fcn.00403f89
pop ecx
test edi, edi
jne 0x4119f5
cmp dword [ebx + 4], esi
jle 0x4119eb
mov ecx, esi
mov dword [esp + 0x30], esi
mov eax, dword [ebx + 8]
mov eax, dword [ecx + eax + 4]
test eax, eax
je 0x4119de
mov ecx, eax
call fcn.0040bc58
mov ecx, dword [esp + 0x30]
inc esi
add ecx, 0x18
mov dword [esp + 0x30], ecx
cmp esi, dword [ebx + 4]
jl 0x4119c8
push 0x40
pop edx
mov ecx, ebx
call fcn.00423f8e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
jmp 0x411710
mov eax, esi
mov dword [esp + 0x30], eax
test edi, edi
jne 0x4119f5
mov ecx, esi
mov dword [esp + 0x2c], esi
cmp eax, dword [ebx + 4]
jge 0x411a48
mov eax, dword [ebx + 8]
mov eax, dword [ecx + eax + 4]
test eax, eax
je 0x411a34
xor edx, edx
mov ecx, eax
call fcn.0040bbfd
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x30]
add ecx, 0x18
inc eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
test edi, edi
je 0x411a15
test edi, edi
jne 0x4119f5
mov ecx, esi
mov dword [esp + 0x30], esi
cmp esi, dword [ebx + 4]
jge 0x4119eb
mov eax, dword [ebx + 8]
mov eax, dword [ecx + eax + 4]
test eax, eax
je 0x411a6f
mov ecx, eax
call fcn.0040bc58
mov ecx, dword [esp + 0x30]
mov edi, eax
add ecx, 0x18
inc esi
mov dword [esp + 0x30], ecx
test edi, edi
je 0x411a52
jmp 0x4119f5