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

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa0]
mov eax, dword [ecx + 0x2e8]
push edi
mov edi, dword [esp + 0x28]
dec eax
cmp edi, eax
mov edx, edi
jl 0x494940
mov edx, eax
test edx, edx
jge 0x494948
xor edi, edi
jmp 0x49494e
cmp edi, eax
jl 0x49494e
mov edi, eax
mov edx, dword [ecx + 0x334]
lea eax, [edi + edi*8]
mov eax, dword [edx + eax*4]
lea edx, [eax - 1]
mov eax, dword [esp + 0x2c]
cmp eax, edx
push ebx
push ebp
mov ebx, eax
jl 0x49496b
mov ebx, edx
test ebx, ebx
jge 0x494973
xor eax, eax
jmp 0x494979
cmp eax, edx
jl 0x494979
mov eax, edx
mov edx, dword [esi + 0x74]
lea ebp, [esi + 0x74]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x70]
mov dword [esp + 0x18], edx
xor edx, edx
cmp dword [esi + 0x148], edx
je 0x4949b9
mov ebx, dword [esi + 0x78]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esi + 0x16c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esi + 0x15c]
mov dword [esp + 0x24], ebx
mov ebx, dword [esi + 0x160]
mov dword [esp + 0x28], ebx
push eax
mov dword [esi + 0x70], eax
push edi
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esi + 0x78], edx
push eax
lea edx, [esp + 0x3c]
push edx
mov dword [ebp], edi
call fcn.00472d20
cmp dword [esp + 0x38], 0
mov ebx, eax
je 0x494a11
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x494a11
mov eax, dword [esi + 0x160]
cdq
idiv dword [0x5c3e74]
add eax, dword [esi + 0x7c]
cmp ecx, eax
jle 0x494a11
dec ecx
mov dword [esp + 0x30], ecx
push ecx
mov ecx, dword [esi + 0xa0]
call fcn.0048c200
mov dword [esp + 0x34], eax
test ebx, ebx
jne 0x494ae1
cmp dword [esp + 0x3c], ebx
je 0x494ac7
lea ebx, [edi - 1]
test ebx, ebx
jl 0x494ac7
mov edi, edi
push 0
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0xa0]
call fcn.00472d20
test eax, eax
jne 0x494a53
sub ebx, 1
jns 0x494a30
jmp 0x494ac7
lea ecx, [ebx + 1]
cmp ecx, edi
jg 0x494a89
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 + 0x334]
cmp dword [ecx + eax + 0x10], 0
lea ecx, [ecx + eax + 0x10]
jle 0x494a81
mov dword [ecx], 0xffffffff
add eax, 0x24
sub edi, 1
jne 0x494a64
mov ecx, dword [esi + 0xa0]
push 1
push 0
push ebx
call fcn.0047ad30
push 0
push 0
push 0
mov ecx, esi
call fcn.00495900
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.00472d20
test eax, eax
jne 0x494ae1
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.00473590
mov ecx, dword [esi + 0xa0]
cmp dword [ecx + 0x9c], 0
jne 0x494b08
mov eax, dword [ebp]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0x334]
mov edi, dword [eax + edx*4 + 0x20]
test edi, edi
jne 0x494b8e
mov edx, dword [ebp]
push edx
call fcn.0046fe30
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.00478750
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x80]
mov edi, dword [esi + 0xa0]
mov dword [esi + 0x16c], eax
imul edx, dword [0x5c3e88]
mov ecx, eax
sub ecx, edx
mov dword [esi + 0x15c], ecx
cmp dword [edi + 0x78], 0
je 0x494bb9
cmp dword [edi + 0xa8], 0
jne 0x494bb9
mov edx, dword [esi + 0x164]
add edx, 0xfffffffe
cmp edx, ecx
mov ebx, edx
jl 0x494b86
mov ebx, ecx
test ebx, ebx
jge 0x494bad
xor ecx, ecx
jmp 0x494bb3
mov eax, dword [esp + 0x30]
push eax
call fcn.004786b0
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 0x494b43
cmp edx, ecx
jge 0x494bb3
mov ecx, edx
mov dword [esi + 0x15c], ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esi + 0x7c]
imul ecx, dword [0x5c3e74]
mov dword [esi + 0x160], ecx
mov edx, dword [0x5c3e88]
shl edx, 5
add eax, edx
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0xe4]
jle 0x494bea
mov dword [edi + 0xe4], eax
cmp dword [esi + 0x148], 0
je 0x494c73
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
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 0x494c32
mov ecx, dword [esi + 0x18c]
cmp ecx, dword [esi + 0x160]
je 0x494c5d
cmp eax, 0xffffffff
je 0x494c3e
mov ecx, esi
call fcn.0048b270
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.0048b270
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x160], edx
jmp 0x494cbb
cmp dword [esi + 0x128], 0
je 0x494c8c
mov eax, dword [esi + 0x20]
inc dword [esi + 0x1e0]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
mov ecx, esi
call fcn.00494010
test eax, eax
jne 0x494c9e
mov ecx, esi
call fcn.004939a0
mov ecx, esi
call fcn.0048b270
mov ecx, dword [0x5ed0c0]
cmp dword [ecx + 0x1824], 1
jne 0x494cbb
mov ecx, esi
call fcn.00491e20
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
mov ecx, dword [esi + 0x70]
push edi
push edx
push eax
push ecx
mov ecx, esi
call fcn.00487aa0
cmp edi, dword [ebp]
pop ebp
pop ebx
je 0x494ce2
mov ecx, esi
call fcn.0048df90
pop edi
pop esi
add esp, 0x1c
ret 0x10