Function at 0x40ca40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4512e2
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x46e02c]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebp
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov ecx, ebp
mov dword [esp + 0x10], eax
call fcn.0040c110
fstp qword [esp + 0x14]
push ebx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x20]
mov dword [esp + 0xc4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::constructor_void_]
mov dword [esp + 0x28], eax
lea edi, [esp + 0x40]
lea esi, [esp + 0x30]
mov byte [esp + 0xc4], 1
call fcn.00409800
mov edx, dword [esp + 0x10]
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea esi, [esp + 0x4c]
call fcn.0040aa70
add esp, 0x24
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
cmp dword [ebp + 0x14], 0
mov esi, dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
je 0x40cb4a
push str.undefined
push ebp
call esi
add esp, 8
test al, al
jne 0x40cb4a
push str.null
push ebp
call esi
xor ecx, ecx
add esp, 8
test al, al
setne cl
inc ecx
mov eax, ecx
jmp 0x40cb4c
xor eax, eax
sub eax, 0
je 0x40cc07
sub eax, 2
je 0x40cbcf
fldz
mov esi, ebx
fld qword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x40cb9c
fstp st(0)
call fcn.0040c510
sub eax, 0
je 0x40cb92
sub eax, 2
je 0x40cb88
mov esi, 9
jmp 0x40cc52
mov esi, 5
jmp 0x40cc52
mov esi, 3
jmp 0x40cc52
fchs
fstp qword [esp + 0x14]
call fcn.0040c510
sub eax, 0
je 0x40cbc5
sub eax, 2
je 0x40cbbb
mov esi, 0xa
jmp 0x40cc52
mov esi, 7
jmp 0x40cc52
mov esi, 4
jmp 0x40cc52
cmp dword [ebx + 0x14], 0
je 0x40cbfb
push str.undefined
push ebx
call esi
add esp, 8
test al, al
jne 0x40cbfb
push str.null
push ebx
call esi
xor edx, edx
add esp, 8
test al, al
setne dl
inc edx
mov eax, edx
jmp 0x40cbfd
xor eax, eax
sub eax, 0
jne 0x40cc3a
lea esi, [eax + 2]
jmp 0x40cc52
cmp dword [ebx + 0x14], 0
je 0x40cc33
push str.undefined
push ebx
call esi
add esp, 8
test al, al
jne 0x40cc33
push str.null
push ebx
call esi
xor ecx, ecx
add esp, 8
test al, al
setne cl
inc ecx
mov eax, ecx
jmp 0x40cc35
xor eax, eax
sub eax, 0
je 0x40cc4d
sub eax, 2
je 0x40cc46
mov esi, 8
jmp 0x40cc52
mov esi, 6
jmp 0x40cc52
mov esi, 1
mov edx, dword [esp + 0xcc]
mov eax, dword [edx]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0040c860
fld qword [esp + 0x14]
sub esp, 8
mov byte [esp + 0xcc], 2
fstp qword [esp]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push edx
push esi
lea eax, [esp + 0x70]
push eax
call fcn.0040c8d0
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0xc8], 0
call fcn.0040cce0
lea ecx, [esp + 0x40]
mov dword [esp + 0xc4], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00449014
add esp, 0xb8
ret