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

Disassembly:
mov edx, dword [esp + 0x20]
mov eax, edx
mov ecx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x20]
sub eax, ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x38]
cmp ecx, dword [esi + 0xac4]
jg 0x1046037b
nop dword [eax]
cmp eax, 3
jl 0x1046037b
mov ecx, dword [edi]
lea eax, [edx - 1]
add eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
mov byte [esi + ecx], 6
mov ecx, dword [edi]
sar eax, 1
mov dword [esp + 0x2c], eax
sub al, bl
mov byte [ecx + esi + 0xfa], al
mov ecx, dword [edi]
mov al, byte [ebp]
mov byte [ecx + esi + 0x1f4], al
mov ecx, dword [edi]
movzx eax, byte [ecx + esi + 0xfa]
add eax, dword [edx]
cmp dword [esp + 0x44], 0
mov dword [esi + ecx*4 + 0x1c64], eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x50]
mov dword [esi + eax*4 + 0x2f0], ecx
mov eax, dword [edi]
mov byte [eax + esi + 0x1680], 1
mov eax, dword [edi]
mov byte [eax + esi + 0x177a], 1
je 0x10460211
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
cmp ecx, 1
jle 0x10460211
cmp ecx, dword [esp + 0x40]
jg 0x10460211
mov ecx, dword [edi]
cmp byte [ecx + esi + 0xfa], 7
jae 0x1046020b
mov dword [esi + ecx*4 + 0x2fec], 2
mov dword [eax], 1
mov edx, dword [edi]
mov ecx, dword [ebp]
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + edx*4 + 0x2fec]
test eax, eax
jle 0x10460249
cmp eax, 1
jne 0x10460230
mov eax, dword [esp + 0x48]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
movzx eax, byte [edx + esi + 0xfa]
sub eax, dword [ecx]
add eax, dword [esp + 0x1c]
mov dword [esi + edx*4 + 0x187c], eax
mov ecx, dword [esp + 0x2c]
mov eax, ecx
push 0
push 0
push 0
sub eax, ebx
push eax
mov eax, dword [esp + 0x40]
sub eax, ecx
push eax
push ecx
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.10147810
mov ecx, dword [edi]
mov dword [esi + ecx*4 + 0x6d8], eax
mov eax, dword [esp + 0x78]
inc eax
inc dword [edi]
push eax
push dword [esp + 0x78]
mov dword [esp + 0x4c], eax
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
push edi
push ebp
push dword [esp + 0x74]
push ebx
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
push esi
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.10460140
mov eax, dword [edi]
add esp, 0x68
mov edx, dword [esp + 0x4c]
mov byte [esi + eax], 5
mov eax, dword [edi]
mov byte [eax + esi + 0xfa], 0
mov ecx, dword [edi]
mov al, byte [ebp]
mov byte [ecx + esi + 0x1f4], al
mov ecx, dword [edi]
mov eax, dword [edx]
mov dword [esi + ecx*4 + 0x1c64], eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x50]
mov dword [esi + eax*4 + 0x6d8], 0
mov eax, dword [edi]
mov dword [esi + eax*4 + 0x2f0], ecx
mov eax, dword [edi]
mov byte [eax + esi + 0x1680], 1
mov eax, dword [edi]
mov byte [eax + esi + 0x177a], 1
mov ebx, dword [edi]
mov ecx, dword [ebp]
mov dword [esp + 0x50], ecx
mov eax, dword [esi + ebx*4 + 0x2fec]
test eax, eax
jle 0x10460353
cmp eax, 1
jne 0x1046033a
mov eax, dword [esp + 0x48]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
movzx eax, byte [ebx + esi + 0xfa]
sub eax, dword [ecx]
add eax, dword [esp + 0x50]
mov dword [esi + ebx*4 + 0x187c], eax
inc dword [edi]
inc dword [ebp]
inc dword [edx]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
inc ebx
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, ebx
mov dword [esp + 0x50], ecx
cmp ecx, dword [esi + 0xac4]
jle 0x10460170
cmp ebx, edx
jge 0x104604aa
sub edx, ebx
mov dword [esp + 0x2c], edx
nop dword [eax]
mov eax, dword [edi]
push 0
push 0
push 0
mov byte [esi + eax], 1
mov eax, dword [edi]
push 0
push edx
push ebx
push dword [esp + 0x40]
mov byte [eax + esi + 0xfa], 0
mov ecx, dword [edi]
mov al, byte [ebp]
push dword [esp + 0x3c]
push dword [esp + 0x38]
mov byte [ecx + esi + 0x1f4], al
mov ecx, dword [edi]
mov eax, dword [esp + 0x70]
push dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 0x1c64], eax
mov eax, dword [edi]
mov dword [esi + eax*4 + 0x2f0], 6
call fcn.10147810
mov ecx, dword [edi]
add esp, 0x28
mov dword [esi + ecx*4 + 0x6d8], eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x50]
mov byte [eax + esi + 0x1680], 1
mov eax, dword [edi]
mov byte [eax + esi + 0x177a], 1
mov eax, dword [esi + 0xac0]
cmp eax, ecx
cmovg ecx, eax
cmp dword [esp + 0x44], 0
mov dword [esi + 0xac0], ecx
je 0x10460453
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov eax, dword [edi]
cmp dword [edx], 1
setg cl
inc ecx
mov dword [esi + eax*4 + 0x2fec], ecx
inc dword [edx]
mov eax, dword [esp + 0x40]
cmp dword [edx], eax
jle 0x10460449
mov dword [edx], 1
mov eax, dword [edi]
mov byte [eax + esi + 0x33d4], 1
mov edx, dword [edi]
mov ecx, dword [ebp]
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + edx*4 + 0x2fec]
test eax, eax
jle 0x1046048b
cmp eax, 1
jne 0x10460472
mov eax, dword [esp + 0x48]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
movzx eax, byte [edx + esi + 0xfa]
sub eax, dword [ecx]
add eax, dword [esp + 0x1c]
mov dword [esi + edx*4 + 0x187c], eax
mov eax, dword [esp + 0x4c]
inc ebx
inc dword [edi]
mov edx, dword [esp + 0x2c]
inc dword [ebp]
dec edx
inc dword [eax]
mov dword [esp + 0x2c], edx
cmp ebx, dword [esp + 0x30]
jl 0x10460390
pop edi
pop esi
pop ebp
pop ebx
ret