Function at 0x491930
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.0049ade0
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], 0x49cff0
mov dword [esp + 0x48], 0x517c18
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], esp
mov dword [esp + 0x50], 0x4922b2
lea eax, [esp + 0x2c]
push eax
call fcn.004baef0
add esp, 4
test esi, esi
je 0x49217d
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.0049aee0
add esp, 8
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esi, dword [eax + 0x14]
cmp byte [esi], 0
je 0x491a7f
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.0049b290
add esp, 0x18
cmp eax, 0xfffffffd
jbe 0x491a8b
mov ecx, dword [esp + 4]
mov word [ecx + 8], 0xffff
jmp 0x491a98
mov ecx, dword [esp + 4]
mov word [ecx + 8], 0xffff
jmp 0x491a9c
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 0x491b14
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.0049b290
add esp, 0x18
cmp eax, 0xfffffffd
jbe 0x491b1c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov word [ecx + 0xa], 0xffff
jmp 0x491b2d
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.004ee530
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.0049b0b0
add esp, 0x18
cmp eax, 0xffffffff
je 0x4921b8
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 0x491be6
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 0x491c24
test cl, 1
jne 0x491bfe
movzx esi, cl
shr esi, 1
jmp 0x491c01
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.004f11c0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 4]
mov bl, byte [esi]
test bl, 1
jne 0x491c2e
lea ecx, [esi + 2]
jmp 0x491c31
mov ecx, dword [edi + 0x20]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x491c50
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x491c57
mov eax, ecx
jmp 0x491caf
mov eax, ecx
jmp 0x491cd0
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 0x491c7f
test al, al
je 0x491c7f
mov esi, dword [esp + 0x14]
mov eax, ecx
jmp 0x491caf
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 0x491c90
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x14]
je 0x491cd0
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 0x491cc0
mov word [eax], 0
test byte [esi], 1
jne 0x491ce2
mov eax, dword [esp + 0x1c]
mov byte [esi], al
jmp 0x491ce9
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 8]
mov al, byte [ecx + 0x28]
cmp al, 0x7f
jne 0x491cf6
xor eax, eax
movsx eax, al
mov dword [edi + 0x3c], eax
cmp byte [ecx + 0x2e], 0
je 0x491dbd
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.0049b0b0
add esp, 0x18
cmp eax, 0xffffffff
je 0x4921ca
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 0x491da7
mov ebx, dword [esi]
mov eax, ebx
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x6c], edx
sub edx, eax
jbe 0x491dff
mov ebx, esi
test cl, 1
jne 0x491dd7
movzx esi, cl
shr esi, 1
jmp 0x491dda
lea ecx, [edi + 0x24]
mov dword [esp + 0x30], 0xc
push 0x5329c2
call fcn.004f0430
jmp 0x491ee9
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.004f11c0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 4]
mov bl, byte [esi]
test bl, 1
jne 0x491e09
lea ecx, [esi + 2]
jmp 0x491e0c
mov ecx, dword [edi + 0x2c]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x491e2b
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x491e32
mov eax, ecx
jmp 0x491ea6
mov eax, ecx
jmp 0x491ed0
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 0x491e65
test al, al
je 0x491e65
mov esi, dword [esp + 0x1c]
mov eax, ecx
lea ebx, [esp + 0xb8]
jmp 0x491ea6
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 0x491e80
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x84]
je 0x491ed0
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 0x491ec0
mov word [eax], 0
test byte [esi], 1
jne 0x491ee2
mov eax, dword [esp + 0x24]
mov byte [esi], al
jmp 0x491ee9
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 8]
cmp byte [eax + 0x2f], 0
je 0x491fae
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.0049b0b0
add esp, 0x18
cmp eax, 0xffffffff
je 0x4921dc
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 0x491f98
mov ebx, dword [esi]
mov eax, ebx
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x24], edx
sub edx, eax
jbe 0x491ff4
mov ebx, esi
test cl, 1
jne 0x491fcc
movzx esi, cl
shr esi, 1
jmp 0x491fcf
mov eax, dword [esp + 4]
mov dword [esp + 0x30], 0x10
lea ecx, [eax + 0x30]
push 0x5329c2
call fcn.004f0430
jmp 0x4920c9
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.004f11c0
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 4]
mov bl, byte [esi]
test bl, 1
jne 0x491ffe
lea ecx, [esi + 2]
jmp 0x492001
mov ecx, dword [edi + 0x38]
mov eax, dword [esp + 0x10]
lea ebx, [esp + 0xb8]
test eax, eax
je 0x492020
lea edx, [eax + eax - 2]
shr edx, 1
inc edx
cmp edx, 8
jae 0x492027
mov eax, ecx
jmp 0x492093
mov eax, ecx
jmp 0x4920b0
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 0x49205a
test al, al
je 0x49205a
mov esi, dword [esp + 0xc]
mov eax, ecx
lea ebx, [esp + 0xb8]
jmp 0x492093
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 0x492070
cmp edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x6c]
je 0x4920b0
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 0x4920a0
mov word [eax], 0
test byte [esi], 1
jne 0x4920c2
mov eax, dword [esp + 0x1c]
mov byte [esi], al
jmp 0x4920c9
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.004f1320
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.00491450
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.00491450
add esp, 0x10
test byte [esp + 0x70], 1
je 0x492151
push dword [esp + 0x78]
call fcn.00493cf0
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.004baf50
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 0x4921ee
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x60]
call fcn.004d7ad0
mov dword [esp + 0x30], 0xa
push str.locale_not_supported
call fcn.0047bfc0
mov dword [esp + 0x30], 0xe
push str.locale_not_supported
call fcn.0047bfc0
mov dword [esp + 0x30], 0x12
push str.locale_not_supported
call fcn.0047bfc0
cmp dword [esp + 4], 0xb
jae 0x49220b
mov ecx, dword [esp + 4]
lea esi, [esp + 0x61]
mov eax, ecx
add al, cl
test ecx, ecx
mov byte [esp + 0x60], al
jne 0x492243
jmp 0x492253
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.00493b40
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.004ee8e0
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.004818a0
mov eax, dword [esp + 0x30]
cmp eax, 0x18
jae case.default.0x4922bd
jmp dword [eax*4 + 0x532358]
jmp case.0x4922bd.19
jmp case.0x4922bd.19
jmp case.0x4922bd.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 0x492388
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
test byte [esp + 0x70], 1
je 0x4922d6
push dword [esp + 0x78]
call fcn.00493cf0
add esp, 4
jmp 0x4922d6
ud2
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
jmp 0x492388
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
jmp 0x49234c
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
test byte [esp + 0x88], 1
je 0x49234c
push dword [esp + 0x90]
call fcn.00493cf0
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 0x492388
push dword [esp + 0x68]
call fcn.00493cf0
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.004bb1f0
jmp case.0x4922bd.23
mov eax, dword [esp + 0x38]
push dword [esp + 0x34]
call fcn.00516230
nop dword [eax + eax]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [esp], 0x53fbf8
call fcn.00479540
jmp 0x4924bd
mov ecx, dword [ebp - 0x10]
call fcn.004924d0
mov dword [esp], esi
call fcn.00516230
sub esp, 4