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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ecx + 0x14]
xor edx, edx
mov dword [esp + 0x24], ecx
push esi
push edi
mov eax, dword [ebx + 0x94]
xor edi, edi
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov ecx, dword [ecx + 0x18]
mov esi, eax
neg eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ebx
lea edx, [ecx - 1]
and edx, eax
inc edx
mov dword [esp + 0x24], edx
cmp ecx, dword [ebx + 0x18]
jbe 0x415d2d
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x415d48
mov ecx, dword [ebx + 0x18]
lea eax, [esi - 1]
add eax, edx
cmp eax, ecx
jbe 0x415d42
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x415d48
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], edi
test ecx, ecx
jle 0x415ff8
mov esi, edx
mov dword [esp + 0x20], edx
nop word [eax + eax]
cmp dword [esp + 0x14], 0
jne 0x415ff8
mov eax, dword [esp + 0x2c]
cmp esi, dword [eax + 0x18]
je 0x415ed1
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x415ed1
mov edx, esi
mov ecx, eax
call fcn.0040f030
test eax, eax
je 0x415ecd
mov eax, dword [ebx + 0xd0]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x55a4a4]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x415db8
mov dword [esp + 0x30], eax
jmp 0x415e4c
mov eax, dword [ebx + 0xd0]
mov ebx, dword [ecx + 4]
cmp dword [ebx], 0
jne 0x415dd7
push ecx
mov edx, esi
mov ecx, eax
call fcn.0040f850
add esp, 4
mov ebx, eax
jmp 0x415dde
inc dword [eax + 0xc]
inc word [ebx + 0x1e]
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x415e48
movzx eax, word [ebx + 0x1c]
test al, 8
mov ecx, eax
mov eax, 1
cmovne edi, eax
mov dword [esp + 0x18], edi
test cl, 0x20
je 0x415ec1
mov edx, dword [ebx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ebx + 0x10], eax
mov esi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ebx
push dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x30]
add esp, 0x10
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
inc esi
inc eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
cmp eax, ecx
jl 0x415d60
cmp dword [esp + 0x14], 0
jne 0x415ff8
test edi, edi
je 0x415ff8
mov esi, dword [esp + 0x24]
nop dword [eax]
mov eax, dword [ebx + 0xd0]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x55a4a4]
mov edx, eax
add esp, 0xc
test edx, edx
je 0x415fe8
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd0]
cmp dword [eax], 0
jne 0x415f88
push edx
mov edx, esi
call fcn.0040f850
add esp, 4
jmp 0x415f8f
mov ecx, ebx
call fcn.0040f8d0
jmp 0x415e48
mov ecx, dword [esp + 0x10]
mov eax, dword [0x55b1cc]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp esi, eax
je 0x415e50
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx + 0xc8]
push esi
push ebx
call eax
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x415e4c
mov ecx, dword [esp + 0x30]
call fcn.00415c50
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
movzx eax, word [edx + 0x1c]
test al, 8
mov ecx, eax
mov eax, 1
cmovne edi, eax
mov dword [esp + 0x18], edi
test cl, 0x20
je 0x415f7c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x30]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x415e4c
mov ecx, edx
call fcn.0040f8d0
jmp 0x415e4c
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x415fe8
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x415fe1
mov edx, dword [eax + 0x14]
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x10], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x34]
add esp, 0x10
jmp 0x415fe8
mov ecx, eax
call fcn.0040f8d0
inc esi
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], esi
jne 0x415e80
and byte [ebx + 0x14], 0xfb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret