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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa0]
mov eax, dword [ecx + 0x2d0]
push edi
mov edi, dword [esp + 0x30]
dec eax
cmp edi, eax
mov edx, edi
jl 0x494902
mov edx, eax
test edx, edx
jge 0x49490a
xor edi, edi
jmp 0x494910
cmp edi, eax
jl 0x494910
mov edi, eax
mov ecx, dword [ecx + 0x31c]
mov ebx, dword [esp + 0x34]
lea eax, [edi + edi*8]
mov eax, dword [ecx + eax*4]
dec eax
cmp ebx, eax
mov ecx, ebx
jl 0x494929
mov ecx, eax
test ecx, ecx
jge 0x494931
xor ebx, ebx
jmp 0x494937
cmp ebx, eax
jl 0x494937
mov ebx, eax
cmp dword [esi + 0x148], 0
je 0x494973
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x16c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x15c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x160]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x70]
lea ebp, [esi + 0x74]
push edx
push eax
push edi
push ebx
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.00487550
push ebx
push edi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0xa0]
lea edx, [esp + 0x3c]
push edx
mov dword [ebp], edi
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], 0
call fcn.00473d30
cmp dword [esp + 0x38], 0
mov ebx, eax
je 0x4949ed
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x4949ed
mov eax, dword [esi + 0x160]
cdq
idiv dword [0x5c3df4]
add eax, dword [esi + 0x7c]
cmp ecx, eax
jle 0x4949ed
dec ecx
mov dword [esp + 0x30], ecx
push ecx
mov ecx, dword [esi + 0xa0]
call fcn.0048b9e0
mov dword [esp + 0x34], eax
test ebx, ebx
jne 0x494ac1
cmp dword [esp + 0x3c], ebx
je 0x494aa7
lea ebx, [edi - 1]
test ebx, ebx
jl 0x494aa7
lea ebx, [ebx]
push 0
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0xa0]
call fcn.00473d30
test eax, eax
jne 0x494a33
sub ebx, 1
jns 0x494a10
jmp 0x494aa7
lea ecx, [ebx + 1]
cmp ecx, edi
jg 0x494a69
lea eax, [ecx + ecx*8]
add eax, eax
sub edi, ecx
add eax, eax
inc edi
mov edx, dword [esi + 0xa0]
mov ecx, dword [edx + 0x31c]
cmp dword [ecx + eax + 0x10], 0
lea ecx, [ecx + eax + 0x10]
jle 0x494a61
mov dword [ecx], 0xffffffff
add eax, 0x24
sub edi, 1
jne 0x494a44
mov ecx, dword [esi + 0xa0]
push 1
push 0
push ebx
call fcn.0047b700
push 0
push 0
push 0
mov ecx, esi
call fcn.004958c0
mov edx, dword [esi + 0x70]
mov eax, dword [ebp]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0xa0]
lea edx, [esp + 0x3c]
push edx
call fcn.00473d30
test eax, eax
jne 0x494ac1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esi + 0xa0]
lea eax, [esi + 0x70]
push eax
push ebp
call fcn.004745a0
mov ecx, dword [esi + 0xa0]
cmp dword [ecx + 0x9c], 0
jne 0x494ae8
mov eax, dword [ebp]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0x31c]
mov edi, dword [eax + edx*4 + 0x20]
test edi, edi
jne 0x494b6e
mov edx, dword [ebp]
push edx
call fcn.00471390
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0
push 0
push 1
push 0
push eax
push ecx
mov ecx, dword [esi + 0xa0]
push 0
lea edx, [esp + 0x2c]
push edx
push 0
mov dword [esp + 0x34], 0
call fcn.004791c0
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x80]
mov edi, dword [esi + 0xa0]
mov dword [esi + 0x16c], eax
imul edx, dword [0x5c3e08]
mov ecx, eax
sub ecx, edx
mov dword [esi + 0x15c], ecx
cmp dword [edi + 0x78], 0
je 0x494b99
cmp dword [edi + 0xa8], 0
jne 0x494b99
mov edx, dword [esi + 0x164]
add edx, 0xfffffffe
cmp edx, ecx
mov ebx, edx
jl 0x494b66
mov ebx, ecx
test ebx, ebx
jge 0x494b8d
xor ecx, ecx
jmp 0x494b93
mov eax, dword [esp + 0x30]
push eax
call fcn.00479120
mov edx, dword [esi + 0x70]
mov ecx, eax
mov eax, dword [edi + edx*4]
cdq
xor eax, edx
sub eax, edx
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x494b23
cmp edx, ecx
jge 0x494b93
mov ecx, edx
mov dword [esi + 0x15c], ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esi + 0x7c]
imul ecx, dword [0x5c3df4]
mov dword [esi + 0x160], ecx
mov edx, dword [0x5c3e08]
shl edx, 5
add eax, edx
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0xe4]
jle 0x494bca
mov dword [edi + 0xe4], eax
cmp dword [esi + 0x148], 0
je 0x494c5b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x16c], eax
mov eax, dword [esi + 0x188]
mov dword [ebp], ecx
mov dword [esi + 0x78], edx
cmp eax, dword [esi + 0x15c]
jne 0x494c12
mov ecx, dword [esi + 0x18c]
cmp ecx, dword [esi + 0x160]
je 0x494c3d
cmp eax, 0xffffffff
je 0x494c1e
mov ecx, esi
call fcn.0048bd40
mov edx, dword [esi + 0x15c]
mov eax, dword [esi + 0x160]
mov ecx, esi
mov dword [esi + 0x188], edx
mov dword [esi + 0x18c], eax
call fcn.0048bd40
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop edi
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x160], edx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
cmp dword [esi + 0x128], 0
je 0x494c6e
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
mov ecx, esi
call fcn.00493920
test eax, eax
jne 0x494c80
mov ecx, esi
call fcn.004932a0
mov ecx, esi
call fcn.0048bd40
mov ecx, dword [0x5ed04c]
cmp dword [ecx + 0x1748], 1
jne 0x494c9d
mov ecx, esi
call fcn.00491790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10