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

Disassembly:
sub esp, 0x40
xor edx, edx
xor ecx, ecx
inc edx
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
mov esi, dword [esp + 0x70]
add esi, edx
mov dword [esp + 0x20], edx
push edi
mov edi, dword [esp + 0x78]
mov ebp, esi
adc edi, ecx
mov dword [esp + 0x48], esi
sub ebp, dword [esp + 0x54]
mov eax, edi
mov dword [esp + 0x4c], edi
sbb eax, dword [esp + 0x58]
add ebp, edx
adc eax, ecx
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, ebx
neg eax
mov dword [esp + 0x28], eax
add eax, ecx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x30], ecx
mov eax, esi
cmovae edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov edx, edi
call fcn.00431230
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x30]
add eax, 0xffffffff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], eax
adc edx, 0xffffffff
and eax, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x48], edx
push eax
lea eax, [ebx + 0x40]
and edx, edi
push eax
push ecx
mov dword [esp + 0x20], edx
call fcn.0040fdcc
mov edx, dword [esp + 0xa0]
add esp, 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
mov dword [edx], eax
xor eax, eax
mov dword [ecx], eax
cmp dword [edx], eax
jle 0x410698
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x1c]
xor edx, edx
div ecx
mov dword [esp + 0x1c], edx
lea edx, [eax + 0x30]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x84]
mov byte [eax + ecx], dl
xor edx, edx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
inc dword [eax]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
call fcn.00431140
add eax, dword [esp + 0x14]
mov ecx, edx
mov dword [esp + 0x3c], eax
adc ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
cmp ecx, dword [esp + 0x18]
jb 0x4107aa
ja 0x41067c
cmp eax, ebp
jb 0x4107aa
mov eax, dword [esp + 0x20]
xor edx, edx
push 0xa
pop ecx
div ecx
cmp dword [esp + 0x34], 0
mov ecx, eax
mov dword [esp + 0x20], ecx
jg 0x41060c
mov esi, dword [esp + 0x8c]
neg ebx
mov ecx, dword [esp + 0x10]
xor edi, edi
mov eax, ecx
push 0xa
pop ecx
mul ecx
push 0xa
mov ecx, eax
mov eax, dword [esp + 0x18]
pop edx
mul edx
push 0xa
add ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, edi
pop ecx
mul ecx
push 0xa
mov edi, eax
mov eax, dword [esp + 0x28]
mul ecx
mov dword [esp + 0x28], eax
add edi, edx
mov eax, dword [esp + 0x1c]
mul ecx
pop edx
mov ecx, eax
mov eax, ebp
mul edx
add ecx, edx
mov ebp, eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, ebx
call fcn.00431230
mov edx, dword [esi]
add al, 0x30
mov ecx, dword [esp + 0x84]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
and edx, dword [esp + 0x40]
and ecx, dword [esp + 0x44]
inc dword [esi]
dec dword [eax]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
cmp ecx, eax
ja 0x4106a7
jb 0x410745
cmp edx, ebp
jae 0x4106a7
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
sub esi, dword [esp + 0x64]
push edi
push ecx
push dword [esp + 0x34]
mov dword [esp + 0x9c], edi
push dword [esp + 0x3c]
mov edi, dword [esp + 0x5c]
push dword [esp + 0x20]
sbb edi, dword [esp + 0x7c]
push edx
push eax
mov eax, dword [esp + 0xac]
push ebp
push eax
push ecx
push edi
push esi
call fcn.00430720
push edx
push eax
mov eax, dword [esp + 0xb4]
push dword [eax]
push dword [esp + 0xb4]
push dword [esp + 0xb4]
call fcn.004121b4
add esp, 0x34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
sub esi, dword [esp + 0x64]
sbb edi, dword [esp + 0x68]
xor eax, eax
xor ecx, ecx
neg ebx
push eax
mov eax, dword [esp + 0x24]
inc ecx
push ecx
xor edx, edx
mov ecx, ebx
call fcn.00431140
push edx
push eax
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x30]
push ebp
push edi
push esi
jmp 0x410783