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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
mov ecx, ebx
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax*2]
lea esi, [edi + eax*4]
push ebp
lea eax, [ebx - 0xc]
push eax
push esi
push edi
call fcn.0040ff00
add esp, 0x10
cmp edi, esi
lea ebx, [esi + 0xc]
jae 0x410271
lea eax, [esi - 0xc]
push esi
push eax
mov dword [esp + 0x18], eax
call ebp
add esp, 8
test al, al
jne 0x410271
mov ecx, dword [esp + 0x10]
push ecx
push esi
call ebp
add esp, 8
test al, al
jne 0x410271
mov esi, dword [esp + 0x10]
cmp edi, esi
jb 0x410248
mov edi, dword [esp + 0x74]
cmp ebx, edi
jae 0x41029d
lea esp, [esp]
push esi
push ebx
call ebp
add esp, 8
test al, al
jne 0x41029d
push ebx
push esi
call ebp
add esp, 8
test al, al
jne 0x41029d
add ebx, 0xc
cmp ebx, edi
jb 0x410280
mov ebp, esi
mov edi, ebx
mov dword [esp + 0x10], ebp
cmp edi, dword [esp + 0x74]
jae 0x41031a
jmp 0x4102b0
push edi
push esi
call dword [esp + 0x80]
add esp, 8
test al, al
jne 0x41030f
push esi
push edi
call dword [esp + 0x80]
add esp, 8
test al, al
jne 0x41031a
mov eax, ebx
mov edx, eax
mov ecx, dword [edx]
mov ebp, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ebp
mov edx, edi
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov edx, dword [edx + 8]
mov ebp, dword [esp + 0x10]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x58]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
add ebx, 0xc
mov dword [eax + 8], edx
mov eax, dword [esp + 0x74]
add edi, 0xc
cmp edi, eax
jb 0x4102b0
cmp ebp, dword [esp + 0x70]
jbe 0x4103a8
add ebp, 0xfffffff4
push esi
push ebp
call dword [esp + 0x80]
add esp, 8
test al, al
jne 0x41038a
push ebp
push esi
call dword [esp + 0x80]
add esp, 8
test al, al
jne 0x4103a0
sub esi, 0xc
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov ecx, ebp
mov eax, dword [ecx]
mov edx, esi
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x18]
mov edx, ebp
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
sub eax, 0xc
sub ebp, 0xc
cmp ecx, eax
mov dword [esp + 0x10], eax
jb 0x410327
mov ebp, dword [esp + 0x10]
cmp ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
jne 0x410448
cmp edi, eax
je 0x41052e
cmp ebx, edi
je 0x4103f6
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov edx, ebx
mov ebp, dword [edx]
mov ecx, esi
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x60]
mov ecx, ebx
mov dword [ecx], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, esi
mov edx, ecx
mov ebp, dword [edx]
mov dword [esp + 0x20], ebp
mov ebp, dword [edx + 4]
mov edx, dword [edx + 8]
mov eax, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebp
mov edx, eax
mov ebp, dword [edx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov edx, dword [edx + 8]
mov ebp, dword [esp + 0x10]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
add ebx, 0xc
add edi, 0xc
mov dword [eax + 4], edx
add esi, 0xc
mov dword [eax + 8], ecx
jmp 0x4102a5
sub ebp, 0xc
cmp edi, eax
mov dword [esp + 0x10], ebp
jne 0x4104e6
sub esi, 0xc
cmp ebp, esi
je 0x41049e
mov edx, ebp
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov eax, esi
mov edx, dword [eax]
mov ecx, ebp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x30]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
sub ebx, 0xc
mov dword [esp + 0x40], eax
mov ecx, ebx
mov eax, dword [ecx]
mov edx, esi
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov eax, dword [esp + 0x38]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x3c]
mov edx, ebx
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x4102a5
mov eax, edi
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov edx, ebp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x48]
mov eax, ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
add edi, 0xc
mov dword [eax + 8], ecx
jmp 0x4102a5
mov eax, dword [esp + 0x6c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], ebx
pop ebx
add esp, 0x58
ret