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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x188
mov ebx, dword [ebp + 8]
mov dword [esp + 0xb8], 0
mov dword [esp + 4], ecx
mov dword [esp + 0xbc], 0
sub esp, 0x10
movsd xmm0, qword [esp + 0xc8]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], 0x3f
call fcn.00503140
add esp, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov edi, edx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x44], 0x4dffd0
mov dword [esp + 0x48], 0x57f71c
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], esp
mov dword [esp + 0x50], 0x4fa8c2
lea eax, [esp + 0x2c]
push eax
call fcn.00521b40
add esp, 4
test esi, esi
je 0x4fa78d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edi
mov dword [esp + 0x30], 5
sub esp, 8
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp], xmm0
call fcn.00503240
add esp, 8
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esi, dword [eax + 0x14]
cmp byte [esi], 0
je 0x4fa08f
mov dword [esp + 0x70], 0
push esi
call sub.msvcrt.dll_strlen
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x30], 6
sub esp, 0x18
movsd xmm0, qword [esp + 0xd0]
lea ecx, [esp + 0x88]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005035f0
add esp, 0x18
cmp eax, 0xfffffffd
jbe 0x4fa09b
mov ecx, dword [esp + 4]
mov word [ecx + 8], 0xffff
jmp 0x4fa0a8
mov ecx, dword [esp + 4]
mov word [ecx + 8], 0xffff
jmp 0x4fa0ac
movzx eax, word [esp + 0x18]
mov ecx, dword [esp + 4]
mov word [ecx + 8], ax
mov eax, dword [esp + 8]
mov esi, dword [eax + 0x18]
mov edi, dword [esp + 0x10]
cmp byte [esi], 0
je 0x4fa124
mov dword [esp + 0x70], 0
push esi
call sub.msvcrt.dll_strlen
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x30], 7
sub esp, 0x18
movsd xmm0, qword [esp + 0xd0]
lea ecx, [esp + 0x88]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005035f0
add esp, 0x18
cmp eax, 0xfffffffd
jbe 0x4fa12c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov word [ecx + 0xa], 0xffff
jmp 0x4fa13d
movzx eax, word [esp + 0x18]
mov ecx, dword [esp + 4]
mov word [ecx + 0xa], ax
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x1c]
lea ecx, [ecx + 0xc]
mov dword [esp + 0x30], 8
push eax
call fcn.00555b20
mov eax, dword [esp + 8]
mov dword [esp + 0x18], 0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xac], eax
mov dword [esp + 0x30], 9
sub esp, 0x18
movsd xmm0, qword [esp + 0xc0]
lea eax, [esp + 0x30]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp + 8], 0x64
mov dword [esp + 4], eax
lea eax, [esp + 0xd0]
mov dword [esp], eax
call fcn.00503410
add esp, 0x18
cmp eax, 0xffffffff
je 0x4fa7c8
mov edi, dword [esp + 4]
mov ecx, eax
mov dword [esp + 0xc], eax
lea eax, [eax + eax]
mov edx, eax
mov dword [esp + 0x1c], eax
mov eax, 4
sar edx, 1
mov cl, byte [edi + 0x18]
lea esi, [edi + 0x18]
test cl, 1
mov ebx, ecx
je 0x4fa1f6
mov ebx, dword [esi]
mov eax, ebx
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x24], edx
sub edx, eax
mov dword [esp + 0x14], esi
jbe 0x4fa234
test cl, 1
jne 0x4fa20e
movzx esi, cl
shr esi, 1
jmp 0x4fa211
mov esi, dword [edi + 0x1c]
mov dword [esp + 0x30], 0xb
mov ecx, dword [esp + 0x14]
push 0
push esi
push 0
push esi
push edx
push eax
call fcn.005587b0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 4]
mov bl, byte [esi]
test bl, 1
jne 0x4fa23e
lea ecx, [esi + 2]
jmp 0x4fa241
mov ecx, dword [edi + 0x20]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x4fa260
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x4fa267
mov eax, ecx
jmp 0x4fa2bf
mov eax, ecx
jmp 0x4fa2e0
mov esi, eax
lea ebx, [esp + 0xb8]
lea eax, [ecx + eax*2]
cmp ebx, eax
lea esi, [esp + esi*2 + 0xb8]
setb al
cmp ecx, esi
jae 0x4fa28f
test al, al
je 0x4fa28f
mov esi, dword [esp + 0x14]
mov eax, ecx
jmp 0x4fa2bf
mov esi, edx
xor edi, edi
and esi, 0xfffffff8
lea eax, [ecx + esi*2]
lea ebx, [esp + esi*2 + 0xb8]
movups xmm0, xmmword [esp + edi*2 + 0xb8]
movups xmmword [ecx + edi*2], xmm0
add edi, 8
cmp esi, edi
jne 0x4fa2a0
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x14]
je 0x4fa2e0
mov ecx, dword [esp + 0xc]
lea ecx, [esp + ecx*2 + 0xb8]
nop word [eax + eax]
movzx edx, word [ebx]
add ebx, 2
mov word [eax], dx
add eax, 2
cmp ecx, ebx
jne 0x4fa2d0
mov word [eax], 0
test byte [esi], 1
jne 0x4fa2f2
mov eax, dword [esp + 0x1c]
mov byte [esi], al
jmp 0x4fa2f9
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 8]
mov al, byte [ecx + 0x28]
cmp al, 0x7f
jne 0x4fa306
xor eax, eax
movsx eax, al
mov dword [edi + 0x3c], eax
cmp byte [ecx + 0x2e], 0
je 0x4fa3cd
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xa4], eax
mov dword [esp + 0x30], 0xd
sub esp, 0x18
movsd xmm0, qword [esp + 0xb8]
lea eax, [esp + 0x30]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp + 8], 0x64
mov dword [esp + 4], eax
lea eax, [esp + 0xd0]
mov dword [esp], eax
call fcn.00503410
add esp, 0x18
cmp eax, 0xffffffff
je 0x4fa7da
mov edi, dword [esp + 4]
mov ecx, eax
mov dword [esp + 0xc], eax
lea eax, [eax + eax]
mov edx, eax
mov dword [esp + 0x24], eax
mov eax, 4
sar edx, 1
mov cl, byte [edi + 0x24]
lea esi, [edi + 0x24]
test cl, 1
mov ebx, ecx
je 0x4fa3b7
mov ebx, dword [esi]
mov eax, ebx
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x6c], edx
sub edx, eax
jbe 0x4fa40f
mov ebx, esi
test cl, 1
jne 0x4fa3e7
movzx esi, cl
shr esi, 1
jmp 0x4fa3ea
lea ecx, [edi + 0x24]
mov dword [esp + 0x30], 0xc
push 0x5b6c82
call fcn.00557a20
jmp 0x4fa4f9
mov esi, dword [edi + 0x28]
mov dword [esp + 0x30], 0xf
mov ecx, ebx
mov dword [esp + 0x1c], ebx
push 0
push esi
push 0
push esi
push edx
push eax
call fcn.005587b0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 4]
mov bl, byte [esi]
test bl, 1
jne 0x4fa419
lea ecx, [esi + 2]
jmp 0x4fa41c
mov ecx, dword [edi + 0x2c]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x4fa43b
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x4fa442
mov eax, ecx
jmp 0x4fa4b6
mov eax, ecx
jmp 0x4fa4e0
mov dword [esp + 0x1c], esi
mov esi, eax
lea ebx, [esp + 0xb8]
lea eax, [ecx + eax*2]
cmp ebx, eax
lea esi, [esp + esi*2 + 0xb8]
setb al
cmp ecx, esi
jae 0x4fa475
test al, al
je 0x4fa475
mov esi, dword [esp + 0x1c]
mov eax, ecx
lea ebx, [esp + 0xb8]
jmp 0x4fa4b6
mov esi, edx
and esi, 0xfffffff8
lea edi, [esp + esi*2 + 0xb8]
lea eax, [ecx + esi*2]
mov dword [esp + 0x84], edi
xor edi, edi
nop dword [eax]
movups xmm0, xmmword [esp + edi*2 + 0xb8]
movups xmmword [ecx + edi*2], xmm0
add edi, 8
cmp esi, edi
jne 0x4fa490
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x84]
je 0x4fa4e0
mov ecx, dword [esp + 0xc]
lea ecx, [esp + ecx*2 + 0xb8]
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edx, word [ebx]
add ebx, 2
mov word [eax], dx
add eax, 2
cmp ecx, ebx
jne 0x4fa4d0
mov word [eax], 0
test byte [esi], 1
jne 0x4fa4f2
mov eax, dword [esp + 0x24]
mov byte [esi], al
jmp 0x4fa4f9
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 8]
cmp byte [eax + 0x2f], 0
je 0x4fa5be
mov dword [esp + 0x18], 0
mov eax, dword [eax + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x30], 0x11
sub esp, 0x18
movsd xmm0, qword [esp + 0xb0]
lea eax, [esp + 0x30]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp + 8], 0x64
mov dword [esp + 4], eax
lea eax, [esp + 0xd0]
mov dword [esp], eax
call fcn.00503410
add esp, 0x18
cmp eax, 0xffffffff
je 0x4fa7ec
mov edi, dword [esp + 4]
mov ecx, eax
mov dword [esp + 0x10], eax
lea eax, [eax + eax]
mov edx, eax
mov dword [esp + 0x1c], eax
mov eax, 4
sar edx, 1
mov cl, byte [edi + 0x30]
lea esi, [edi + 0x30]
test cl, 1
mov ebx, ecx
je 0x4fa5a8
mov ebx, dword [esi]
mov eax, ebx
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x24], edx
sub edx, eax
jbe 0x4fa604
mov ebx, esi
test cl, 1
jne 0x4fa5dc
movzx esi, cl
shr esi, 1
jmp 0x4fa5df
mov eax, dword [esp + 4]
mov dword [esp + 0x30], 0x10
lea ecx, [eax + 0x30]
push 0x5b6c82
call fcn.00557a20
jmp 0x4fa6d9
mov esi, dword [edi + 0x34]
mov dword [esp + 0x30], 0x13
mov ecx, ebx
mov dword [esp + 0xc], ebx
push 0
push esi
push 0
push esi
push edx
push eax
call fcn.005587b0
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 4]
mov bl, byte [esi]
test bl, 1
jne 0x4fa60e
lea ecx, [esi + 2]
jmp 0x4fa611
mov ecx, dword [edi + 0x38]
mov eax, dword [esp + 0x10]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x4fa630
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x4fa637
mov eax, ecx
jmp 0x4fa6a3
mov eax, ecx
jmp 0x4fa6c0
mov dword [esp + 0xc], esi
mov esi, eax
lea ebx, [esp + 0xb8]
lea eax, [ecx + eax*2]
cmp ebx, eax
lea esi, [esp + esi*2 + 0xb8]
setb al
cmp ecx, esi
jae 0x4fa66a
test al, al
je 0x4fa66a
mov esi, dword [esp + 0xc]
mov eax, ecx
lea ebx, [esp + 0xb8]
jmp 0x4fa6a3
mov esi, edx
and esi, 0xfffffff8
lea edi, [esp + esi*2 + 0xb8]
lea eax, [ecx + esi*2]
mov dword [esp + 0x6c], edi
xor edi, edi
nop
movups xmm0, xmmword [esp + edi*2 + 0xb8]
movups xmmword [ecx + edi*2], xmm0
add edi, 8
cmp esi, edi
jne 0x4fa680
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x6c]
je 0x4fa6c0
mov ecx, dword [esp + 0x10]
lea ecx, [esp + ecx*2 + 0xb8]
nop
movzx edx, word [ebx]
add ebx, 2
mov word [eax], dx
add eax, 2
cmp ecx, ebx
jne 0x4fa6b0
mov word [eax], 0
test byte [esi], 1
jne 0x4fa6d2
mov eax, dword [esp + 0x1c]
mov byte [esi], al
jmp 0x4fa6d9
mov eax, dword [esp + 0x24]
mov dword [edi + 0x34], eax
mov dword [esp + 0x30], 0x14
lea ecx, [esp + 0x70]
push dword [esp + 0x14]
call fcn.00558910
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
lea ecx, [eax + 0x40]
movsx eax, byte [edx + 0x2a]
movsx esi, byte [edx + 0x2b]
movsx edi, byte [edx + 0x2e]
mov dword [esp + 0x30], 0x15
lea edx, [esp + 0x70]
push edi
push esi
push eax
push 1
call fcn.004f9a60
add esp, 0x10
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
movsx eax, byte [edx + 0x2c]
movsx esi, byte [edx + 0x2d]
movsx edi, byte [edx + 0x2f]
add ecx, 0x44
mov dword [esp + 0x30], 0x16
mov edx, dword [esp + 0x14]
push edi
push esi
push eax
push 1
call fcn.004f9a60
add esp, 0x10
test byte [esp + 0x70], 1
je 0x4fa761
push dword [esp + 0x78]
call fcn.004fc300
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0x17
push eax
call sub.api_ms_win_crt_locale_l1_1_0.dll__free_locale
add esp, 4
lea eax, [esp + 0x2c]
push eax
call fcn.00521ba0
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
push ebx
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
mov dword [esp + 4], eax
jb 0x4fa7fe
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x60]
call fcn.0053ebb0
mov dword [esp + 0x30], 0xa
push str.locale_not_supported
call fcn.004e45d0
mov dword [esp + 0x30], 0xe
push str.locale_not_supported
call fcn.004e45d0
mov dword [esp + 0x30], 0x12
push str.locale_not_supported
call fcn.004e45d0
cmp dword [esp + 4], 0xb
jae 0x4fa81b
mov ecx, dword [esp + 4]
lea esi, [esp + 0x61]
mov eax, ecx
add al, cl
test ecx, ecx
mov byte [esp + 0x60], al
jne 0x4fa853
jmp 0x4fa863
mov eax, dword [esp + 4]
mov dword [esp + 0x30], 2
add eax, 0x10
and eax, 0xfffffff0
mov dword [esp + 8], eax
push eax
call fcn.004fc150
add esp, 4
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov esi, eax
mov dword [esp + 0x68], eax
or edx, 1
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
push dword [esp + 4]
push dword [ebp + 8]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
mov byte [esi + eax], 0
mov dword [esp + 0x30], 3
lea ecx, [esp + 0x60]
push str.moneypunct_byname_failed_to_construct_for
push 0
call fcn.00555ed0
mov ecx, dword [eax + 8]
mov dword [esp + 0x90], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x88], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x30], 4
lea ecx, [esp + 0x88]
call fcn.004e9eb0
mov eax, dword [esp + 0x30]
cmp eax, 0x18
jae case.default.0x4fa8cd
jmp dword [eax*4 + 0x5b6618]
jmp case.0x4fa8cd.19
jmp case.0x4fa8cd.19
jmp case.0x4fa8cd.19
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0x18
push eax
call sub.api_ms_win_crt_locale_l1_1_0.dll__free_locale
add esp, 4
jmp 0x4fa998
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
test byte [esp + 0x70], 1
je 0x4fa8e6
push dword [esp + 0x78]
call fcn.004fc300
add esp, 4
jmp 0x4fa8e6
ud2
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
jmp 0x4fa998
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
jmp 0x4fa95c
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
test byte [esp + 0x88], 1
je 0x4fa95c
push dword [esp + 0x90]
call fcn.004fc300
add esp, 4
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
test byte [esp + 0x60], 1
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
je 0x4fa998
push dword [esp + 0x68]
call fcn.004fc300
add esp, 4
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 0x30], 0xffffffff
push dword [esp + 4]
call fcn.00521e40
jmp case.0x4fa8cd.23
mov eax, dword [esp + 0x38]
push dword [esp + 0x34]
call fcn.0057dc50
nop dword [eax + eax]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [esp], 0x5da2d0
call fcn.004dfdb0
jmp 0x4faacd
mov ecx, dword [ebp - 0x10]
call fcn.004faae0
mov dword [esp], esi
call fcn.0057dc50
sub esp, 4