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

Disassembly:
sub esp, 0x38
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa0]
cmp dword [ecx + 0x9c], 0
je 0x494d0d
mov eax, dword [ecx + 0x300]
jmp 0x494d2a
cmp dword [ecx + 0x78], 0
jne 0x494d24
cmp dword [ecx + 0x84], 0
jne 0x494d24
mov eax, dword [ecx + 0x2e8]
jmp 0x494d2a
mov eax, dword [ecx + 0x184]
mov edx, dword [esp + 0x40]
dec eax
cmp edx, eax
jge 0x494d37
mov eax, edx
jmp 0x494d66
cmp dword [ecx + 0x9c], 0
je 0x494d48
mov eax, dword [ecx + 0x300]
jmp 0x494d65
cmp dword [ecx + 0x78], 0
jne 0x494d5f
cmp dword [ecx + 0x84], 0
jne 0x494d5f
mov eax, dword [ecx + 0x2e8]
jmp 0x494d65
mov eax, dword [ecx + 0x184]
dec eax
test eax, eax
jge 0x494d74
mov dword [esp + 0x40], 0
jmp 0x494dda
cmp dword [ecx + 0x9c], 0
je 0x494d85
mov eax, dword [ecx + 0x300]
jmp 0x494da2
cmp dword [ecx + 0x78], 0
jne 0x494d9c
cmp dword [ecx + 0x84], 0
jne 0x494d9c
mov eax, dword [ecx + 0x2e8]
jmp 0x494da2
mov eax, dword [ecx + 0x184]
dec eax
cmp edx, eax
jl 0x494dda
cmp dword [ecx + 0x9c], 0
je 0x494db8
mov eax, dword [ecx + 0x300]
jmp 0x494dd5
cmp dword [ecx + 0x78], 0
jne 0x494dcf
cmp dword [ecx + 0x84], 0
jne 0x494dcf
mov eax, dword [ecx + 0x2e8]
jmp 0x494dd5
mov eax, dword [ecx + 0x184]
dec eax
mov dword [esp + 0x40], eax
cmp dword [esi + 0x148], 0
mov eax, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
je 0x494e0c
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x15c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x160]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
push ebx
push ebp
push edi
mov edi, dword [esp + 0x4c]
xor ebx, ebx
push ebx
push edi
lea eax, [esi + 0x70]
push eax
lea eax, [esi + 0x74]
push eax
xor ebp, ebp
mov dword [esp + 0x38], ebx
mov dword [esi + 0x78], ebx
call fcn.00473590
mov ecx, dword [esi + 0xa0]
push edi
call fcn.0048c200
mov ecx, dword [0x5ed83c]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xa0]
push edi
mov dword [esp + 0x24], eax
call fcn.00470d60
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0xa0]
push edi
push eax
call fcn.00478660
mov ecx, dword [esi + 0xa0]
mov dword [esp + 0x2c], eax
mov edi, eax
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x9c], ebx
je 0x494e88
mov eax, dword [ecx + 0x300]
jmp 0x494ea3
cmp dword [ecx + 0x78], ebx
jne 0x494e9d
cmp dword [ecx + 0x84], ebx
jne 0x494e9d
mov eax, dword [ecx + 0x2e8]
jmp 0x494ea3
mov eax, dword [ecx + 0x184]
dec eax
cmp dword [esp + 0x4c], eax
jge 0x494ebd
mov edx, dword [esp + 0x4c]
inc edx
push edx
call fcn.00470e50
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x494ec5
mov dword [esp + 0x20], 1
mov ecx, dword [esi + 0xa0]
mov eax, dword [esi + 0x70]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
cmp dword [ecx + 0x9c], ebx
jne 0x495027
mov eax, dword [esi + 0x74]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0x334]
mov eax, dword [eax + edx*4 + 0x20]
test eax, eax
je 0x495027
mov edx, dword [esp + 0x14]
lea ebp, [eax + edx*4]
mov eax, dword [esp + 0x4c]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
call fcn.00470e50
test eax, eax
je 0x494f29
mov eax, dword [ebp]
cdq
mov ecx, eax
mov eax, dword [esp + 0x2c]
xor ecx, edx
sub ecx, edx
sub eax, ecx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], ebx
jle 0x494fb7
mov ecx, dword [ebp + ebx*4]
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x10]
mov edx, dword [esi + 0x16c]
cmp eax, edx
jl 0x494f8a
test ebx, ebx
jg 0x494f54
cmp eax, edx
jne 0x494f8a
test ecx, ecx
jge 0x494f95
mov edi, 1
cmp ecx, dword [ebp + ebx*4 + 4]
jne 0x494f6f
lea eax, [ebp + ebx*4 + 4]
add eax, 4
inc edi
cmp ecx, dword [eax]
je 0x494f67
lea ecx, [edi + ebx]
mov eax, dword [ebp + ecx*4]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x16c]
jle 0x494f93
lea ebx, [ecx - 1]
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x494f33
jmp 0x494f95
add ebx, edi
test ebx, ebx
jle 0x494fb7
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
test eax, eax
jle 0x494fb7
mov edx, dword [ebp + eax*4]
cmp edx, dword [ebp + eax*4 - 4]
jne 0x494fb3
dec eax
test eax, eax
jg 0x494fa4
mov dword [esp + 0x18], eax
mov eax, dword [ebp + ebx*4]
mov ecx, dword [esp + 0x10]
cdq
mov edi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [ebp + eax*4]
xor edi, edx
sub edi, edx
cdq
xor eax, edx
add edi, ecx
sub eax, edx
add eax, ecx
mov ebp, edi
sub ebp, eax
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jl 0x495017
cmp dword [esp + 0x30], 0
je 0x495017
cmp dword [esp + 0x20], 0
je 0x495017
cmp edi, dword [esi + 0x16c]
jge 0x495017
mov eax, 1
mov ebp, dword [0x5c3218]
add dword [esi + 0x78], eax
mov dword [esp + 0x10], edi
add edi, ebp
cmp edi, dword [esi + 0x16c]
jl 0x495000
mov ecx, dword [esp + 0x18]
add dword [esi + 0x70], ebx
add dword [esp + 0x14], ecx
jmp 0x4950d9
mov edx, dword [esp + 0x2c]
cmp edx, dword [esi + 0x16c]
jge 0x495102
jmp 0x495040
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jl 0x495067
cmp dword [esp + 0x30], 0
je 0x4950d9
cmp dword [esp + 0x20], 0
je 0x4950d9
mov ebp, dword [0x5c3218]
inc dword [esi + 0x78]
jmp 0x4950cb
mov ebp, dword [esp + 0x24]
push ebp
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebp]
sub ebx, ebp
mov ecx, 9
sar ebx, 1
cmp cx, ax
jne 0x49509b
mov edx, dword [esi + 0xa0]
mov ebp, dword [edx + 0x108]
mov eax, edi
cdq
idiv ebp
sub ebp, edx
jmp 0x4950ac
push eax
mov eax, dword [0x5e3ebc]
push eax
call fcn.0046cd30
add esp, 8
mov ebp, eax
mov eax, dword [esi + 0x70]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
add eax, ebx
add dword [esp + 0x28], ebx
lea edx, [ecx + ebx*2]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esi + 0x70], eax
add edi, ebp
cmp edi, dword [esi + 0x16c]
jl 0x495040
test ebp, ebp
jge 0x495102
mov ecx, dword [esi + 0x16c]
cmp edi, ecx
jge 0x495144
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
or edx, 0xffffffff
sub edx, eax
sub ecx, edi
cmp ecx, edx
jle 0x495144
mov eax, dword [esp + 0x14]
mov dword [esi + 0x70], eax
jmp 0x495140
mov eax, dword [esi + 0x16c]
cmp edi, eax
jle 0x495144
mov ecx, edi
sub ecx, eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
dec eax
cmp ecx, eax
jle 0x495144
mov eax, dword [esi + 0x78]
test eax, eax
jle 0x49512f
dec eax
mov dword [esi + 0x78], eax
sub edi, dword [0x5c3218]
jmp 0x495144
test ebx, ebx
jle 0x495144
cmp dword [esp + 0x10], edi
jge 0x495144
mov edx, dword [esp + 0x14]
mov dword [esi + 0x70], edx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp edi, eax
jg 0x49514e
mov edi, eax
mov eax, dword [esi + 0x80]
imul eax, dword [0x5c3e88]
mov ecx, edi
sub ecx, eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0x15c], ecx
test eax, eax
jle 0x495175
imul eax, dword [0x5c3218]
sub edi, eax
mov ebx, dword [esi + 0xa0]
cmp dword [ebx + 0x78], 0
je 0x4951af
cmp dword [ebx + 0xa8], 0
jne 0x4951af
mov eax, dword [esi + 0x164]
add eax, 0xfffffffe
cmp eax, ecx
mov edx, eax
jl 0x49519b
mov edx, ecx
test edx, edx
jge 0x4951a3
xor eax, eax
jmp 0x4951a9
cmp eax, ecx
jl 0x4951a9
mov eax, ecx
mov dword [esi + 0x15c], eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esi + 0x7c]
imul eax, dword [0x5c3e74]
mov dword [esi + 0x160], eax
mov edx, dword [0x5c3e88]
shl edx, 5
add edi, edx
cmp edi, dword [ebx + 0xe4]
jle 0x4951dc
mov dword [ebx + 0xe4], edi
cmp dword [esi + 0x148], 0
je 0x495261
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x16c], eax
mov eax, dword [esi + 0x188]
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], edx
cmp eax, dword [esi + 0x15c]
jne 0x495220
mov ecx, dword [esi + 0x18c]
cmp ecx, dword [esi + 0x160]
je 0x49524b
cmp eax, 0xffffffff
je 0x49522c
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 + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x160], edx
jmp 0x4952a9
cmp dword [esi + 0x128], 0
je 0x49527a
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 0x49528c
mov ecx, esi
call fcn.004939a0
mov ecx, esi
call fcn.0048b270
mov ecx, dword [0x5ed0c0]
cmp dword [ecx + 0x1824], 1
jne 0x4952a9
mov ecx, esi
call fcn.00491e20
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push edi
push edx
push eax
push ecx
mov ecx, esi
call fcn.00487aa0
cmp edi, dword [esi + 0x74]
pop edi
pop ebp
pop ebx
je 0x4952d1
mov ecx, esi
call fcn.0048df90
pop esi
add esp, 0x38
ret 4