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

Disassembly:
mov eax, 0x1064
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1060], eax
push ebx
mov ebx, dword [esp + 0x106c]
xor edx, edx
push ebp
push esi
push edi
mov dword [esp + 0x20], ebx
mov esi, ebx
jmp 0x4951a0
movzx eax, word [esi]
mov edi, eax
cmp eax, 0x5c
je 0x4951b4
cmp eax, 0x2f
je 0x4951b4
test ax, ax
jne 0x4951ed
lea eax, [edx - 1]
test eax, eax
jle 0x4951ed
jmp 0x4951c0
movzx ecx, word [ebx + eax*2]
cmp ecx, 0x20
je 0x4951e7
cmp ecx, 0x2e
jne 0x4951ed
movzx ecx, word [ebx + eax*2 - 2]
cmp ecx, 0x5c
je 0x4951ed
cmp ecx, 0x2f
je 0x4951ed
cmp ecx, 0x2e
jne 0x4951e7
cmp eax, 1
je 0x4951ed
dec eax
dec edx
test eax, eax
jg 0x4951c0
mov word [ebx + edx*2], di
cmp word [esi], 0
je 0x4951fd
add esi, 2
inc edx
jmp 0x4951a0
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp word [ebx], bp
je 0x495446
mov eax, ebx
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x49522c
movzx eax, word [eax - 2]
cmp eax, 0x5c
je 0x495228
cmp eax, 0x2f
jne 0x49542f
mov eax, dword [esp + 0x14]
mov byte [esp + 0x13], 0
mov ebp, 0x57018c
mov dword [esp + 0x1c], 6
jmp 0x495244
mov eax, dword [esp + 0x14]
xor edi, edi
mov esi, eax
jmp 0x495250
mov eax, dword [ebp]
lea ebx, [edi + edi]
movzx ecx, word [ebx + eax]
movzx eax, word [esi]
cmp ecx, 0x23
jne 0x4953c9
push eax
call fcn.004aff30
test al, al
jne 0x4953e3
mov cl, byte [esp + 0x13]
mov esi, dword [esp + 0x14]
add ebp, 4
sub dword [esp + 0x1c], 1
jne 0x495240
mov ebx, dword [esp + 0x20]
test cl, cl
je 0x49542b
push 0x800
push ebx
lea eax, [esp + 0x78]
push eax
call fcn.004b0360
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x107c]
lea eax, [ebp + 1]
cmp edi, eax
jbe 0x4952cd
mov eax, edi
sub eax, ebp
lea eax, [eax*2 - 2]
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.0051f6b0
add esp, 0xc
mov eax, 0x5f
mov dword [esp + 0x28], 0x54266c
mov word [esi], ax
lea ecx, [esp + 0x24]
xor eax, eax
mov dword [esp + 0x2c], 0x54266c
mov dword [esp + 0x30], 0x54266c
mov dword [esp + 0x34], 0x54266c
mov dword [esp + 0x38], 0x54266c
mov dword [esp + 0x3c], 0x54266c
mov dword [esp + 0x40], 0x54266c
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x74
mov dword [esp + 0x24], eax
mov dword [esp + 0x64], 1
call fcn.004b2040
xor eax, eax
mov dword [esp + 0x30], 0x54266c
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x34], 0x54266c
mov dword [esp + 0x38], 0x54266c
mov dword [esp + 0x3c], 0x54266c
mov dword [esp + 0x40], 0x54266c
mov dword [esp + 0x6c], 0x23
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x64], 3
call fcn.004b2040
jmp 0x49542f
test cx, cx
je 0x4953ec
push eax
call fcn.004b4390
mov ecx, dword [ebp]
movzx ecx, word [ecx + ebx]
cmp ecx, eax
jne 0x495274
inc edi
add esi, 2
jmp 0x495250
test ax, ax
je 0x49541c
cmp eax, 0x2e
jne 0x4953ff
call fcn.00487e30
test al, al
je 0x49541c
mov esi, dword [esp + 0x14]
movzx eax, word [ebx + esi]
cmp eax, 0x5c
je 0x495420
cmp eax, 0x2f
je 0x495420
xor cl, cl
mov byte [esp + 0x13], cl
jmp 0x49527c
mov esi, dword [esp + 0x14]
mov cl, 1
mov byte [esp + 0x13], cl
jmp 0x49527c
mov ebp, dword [esp + 0x18]
inc ebp
cmp word [ebx + ebp*2], 0
mov dword [esp + 0x18], ebp
lea eax, [ebx + ebp*2]
mov dword [esp + 0x14], eax
jne 0x495212
mov ecx, dword [esp + 0x1070]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1064
ret 8