Function at 0x4f8fe0
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], 0x57f6e0
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], esp
mov dword [esp + 0x50], 0x4f9962
lea eax, [esp + 0x2c]
push eax
call fcn.00521b40
add esp, 4
test esi, esi
je 0x4f982d
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 0x4f912f
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 0x4f913b
mov ecx, dword [esp + 4]
mov word [ecx + 8], 0xffff
jmp 0x4f9148
mov ecx, dword [esp + 4]
mov word [ecx + 8], 0xffff
jmp 0x4f914c
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 0x4f91c4
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 0x4f91cc
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov word [ecx + 0xa], 0xffff
jmp 0x4f91dd
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 + 0x10]
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 0x4f9868
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 0x4f9296
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 0x4f92d4
test cl, 1
jne 0x4f92ae
movzx esi, cl
shr esi, 1
jmp 0x4f92b1
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 0x4f92de
lea ecx, [esi + 2]
jmp 0x4f92e1
mov ecx, dword [edi + 0x20]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x4f9300
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x4f9307
mov eax, ecx
jmp 0x4f935f
mov eax, ecx
jmp 0x4f9380
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 0x4f932f
test al, al
je 0x4f932f
mov esi, dword [esp + 0x14]
mov eax, ecx
jmp 0x4f935f
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 0x4f9340
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x14]
je 0x4f9380
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 0x4f9370
mov word [eax], 0
test byte [esi], 1
jne 0x4f9392
mov eax, dword [esp + 0x1c]
mov byte [esi], al
jmp 0x4f9399
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 8]
mov al, byte [ecx + 0x29]
cmp al, 0x7f
jne 0x4f93a6
xor eax, eax
movsx eax, al
mov dword [edi + 0x3c], eax
cmp byte [ecx + 0x2e], 0
je 0x4f946d
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 0x4f987a
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 0x4f9457
mov ebx, dword [esi]
mov eax, ebx
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x6c], edx
sub edx, eax
jbe 0x4f94af
mov ebx, esi
test cl, 1
jne 0x4f9487
movzx esi, cl
shr esi, 1
jmp 0x4f948a
lea ecx, [edi + 0x24]
mov dword [esp + 0x30], 0xc
push 0x5b6c82
call fcn.00557a20
jmp 0x4f9599
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 0x4f94b9
lea ecx, [esi + 2]
jmp 0x4f94bc
mov ecx, dword [edi + 0x2c]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x4f94db
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x4f94e2
mov eax, ecx
jmp 0x4f9556
mov eax, ecx
jmp 0x4f9580
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 0x4f9515
test al, al
je 0x4f9515
mov esi, dword [esp + 0x1c]
mov eax, ecx
lea ebx, [esp + 0xb8]
jmp 0x4f9556
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 0x4f9530
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x84]
je 0x4f9580
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 0x4f9570
mov word [eax], 0
test byte [esi], 1
jne 0x4f9592
mov eax, dword [esp + 0x24]
mov byte [esi], al
jmp 0x4f9599
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 8]
cmp byte [eax + 0x2f], 0
je 0x4f965e
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 0x4f988c
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 0x4f9648
mov ebx, dword [esi]
mov eax, ebx
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x24], edx
sub edx, eax
jbe 0x4f96a4
mov ebx, esi
test cl, 1
jne 0x4f967c
movzx esi, cl
shr esi, 1
jmp 0x4f967f
mov eax, dword [esp + 4]
mov dword [esp + 0x30], 0x10
lea ecx, [eax + 0x30]
push 0x5b6c82
call fcn.00557a20
jmp 0x4f9779
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 0x4f96ae
lea ecx, [esi + 2]
jmp 0x4f96b1
mov ecx, dword [edi + 0x38]
mov eax, dword [esp + 0x10]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x4f96d0
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x4f96d7
mov eax, ecx
jmp 0x4f9743
mov eax, ecx
jmp 0x4f9760
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 0x4f970a
test al, al
je 0x4f970a
mov esi, dword [esp + 0xc]
mov eax, ecx
lea ebx, [esp + 0xb8]
jmp 0x4f9743
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 0x4f9720
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x6c]
je 0x4f9760
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 0x4f9750
mov word [eax], 0
test byte [esi], 1
jne 0x4f9772
mov eax, dword [esp + 0x1c]
mov byte [esi], al
jmp 0x4f9779
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 0
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 0
call fcn.004f9a60
add esp, 0x10
test byte [esp + 0x70], 1
je 0x4f9801
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 0x4f989e
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 0x4f98bb
mov ecx, dword [esp + 4]
lea esi, [esp + 0x61]
mov eax, ecx
add al, cl
test ecx, ecx
mov byte [esp + 0x60], al
jne 0x4f98f3
jmp 0x4f9903
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.0x4f996d
jmp dword [eax*4 + 0x5b6590]
jmp case.0x4f996d.19
jmp case.0x4f996d.19
jmp case.0x4f996d.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 0x4f9a38
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
test byte [esp + 0x70], 1
je 0x4f9986
push dword [esp + 0x78]
call fcn.004fc300
add esp, 4
jmp 0x4f9986
ud2
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
jmp 0x4f9a38
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
jmp 0x4f99fc
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
test byte [esp + 0x88], 1
je 0x4f99fc
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 0x4f9a38
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.0x4f996d.23
mov eax, dword [esp + 0x38]
push dword [esp + 0x34]
call fcn.0057dc50
nop dword [eax + eax]
movsx eax, bl
mov dword [esi], 0x4000203
test eax, eax
je 0x4f9eba
cmp eax, 2
je 0x4f9eba
cmp eax, 1
jne case.default.0x4f9b7a
test cl, cl
jne 0x4f9eba
mov ecx, edx
jmp 0x4f9f28
mov dword [esi], 0x4000302
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x20
push 1
push 0
call fcn.00557f40
jmp 0x4f9eba