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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
call fcn.00405860
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 8]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [esp + 0x14], esi
call fcn.00405870
xor ebx, ebx
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x5d23f7
xor ecx, ecx
mov dword [esp + 0x28], ecx
jmp 0x5d21e2
mov esi, dword [esp + 0x14]
mov edx, dword [edi + 0x24]
mov eax, dword [esp + 0x18]
xor ebp, ebp
add ecx, edx
cmp eax, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ebp
jl 0x5d229f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x30], esi
push eax
mov dword [esp + 0x38], ebp
call fcn.00416100
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
sub esp, 0xc
mov edx, dword [ecx + 4]
lea ecx, [edx + eax*8]
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], ecx
mov ecx, esp
mov edx, dword [eax]
mov eax, ebp
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov ecx, dword [edi + 8]
call dword [edx + 0x38]
xor edx, edx
sub esp, 0xc
mov dx, word [eax]
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov ecx, dword [edi + 8]
call dword [edx + 0x38]
xor edx, edx
mov ecx, dword [esp + 0x18]
mov dx, word [eax]
mov eax, dword [esp + 0x20]
dec esi
inc ebp
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x5d21fd
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, 1
xor ebp, ebp
mov dword [esp + 0x10], eax
lea esi, [edx - 1]
mov edx, dword [esp + 0x18]
cmp edx, eax
jle 0x5d23df
jmp 0x5d22c3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, ebp
add eax, edx
sub esp, 0xc
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], esi
lea edx, [eax + ecx*8]
mov eax, dword [edi + 8]
mov ecx, esp
mov dword [esp + 0x30], edx
mov edx, dword [eax]
mov eax, ebp
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov ecx, dword [edi + 8]
call dword [edx + 0x38]
xor ecx, ecx
sub esp, 0xc
mov cx, word [eax]
mov eax, ebp
inc eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
mov dword [esp + 0x54], esi
mov edx, dword [eax]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ebx
call dword [edx + 0x38]
xor edx, edx
mov ecx, dword [esp + 0x24]
mov dx, word [eax]
sub esp, 0xc
mov eax, edx
mov edx, dword [esp + 0x2c]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edi + 8]
lea eax, [esi + edx]
mov edx, dword [ecx]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov ecx, dword [edi + 8]
call dword [edx + 0x38]
xor ecx, ecx
mov cx, word [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
lea eax, [esi + ecx]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
inc eax
inc ecx
sub esp, 0xc
mov dword [esp + 0x78], ecx
mov ecx, esp
mov edx, eax
mov eax, dword [edi + 8]
mov dword [ecx], edx
mov edx, dword [esp + 0x78]
mov eax, dword [eax]
mov dword [ecx + 4], edx
mov dword [ecx + 8], ebx
mov ecx, dword [edi + 8]
call dword [eax + 0x38]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov cx, word [eax]
mov eax, ecx
mov ecx, dword [esp + 0x18]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
dec esi
add eax, 2
inc ebp
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5d22bf
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
inc ebx
add ecx, 0x10
cmp ebx, eax
mov dword [esp + 0x28], ecx
jl 0x5d21de
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret