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

Disassembly:
push 0xffffffffffffffff
push 0x522ca75
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov esi, dword [esp + 0x124]
mov edi, dword [esp + 0x130]
xor ebp, ebp
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x48], edi
mov dword [esp + 0x18], ebp
call fcn.050674e0
test al, al
jne 0x514c2d8
push str._ERROR:
push 0xff
push 0xa24
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0x11c], ebp
mov ecx, dword [0x56bc0f0]
push esi
push str.__d__META_FAT_GetDriveType_r___:_invalid_handle_
push ecx
push eax
call fcn.051ae2d0
add esp, 0x10
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
lea eax, [ebp + 0xd]
jmp 0x514ce11
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push str.______META_FAT_GetDriveType_r__:_Leave______
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x138], 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push str.______META_FAT_GetDriveType_r__:_Enter______
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x154], 2
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xd2f8
or ebx, 0xffffffff
push eax
mov dword [esp + 0x158], ebx
lea ecx, [esp + 0xd0]
call fcn.051af160
mov dword [esp + 0x11c], 3
cmp byte [esp + 0xd0], 0
jne 0x514c3c0
push str._ERROR:
push 0xff
push 0xa2c
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x11c], 4
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.__d__META_FAT_GetDriveType_r__:_FAT_API_is_occupired_by_another_thread_now.
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov dword [esp + 0x11c], ebx
lea ecx, [esp + 0x94]
call fcn.051af270
lea eax, [ebx + 0xd]
jmp 0x514ce11
lea edx, [esp + 0x34]
push edx
push str.FT_FAT_OP_GET_DRIVE_TYPE
push str.FT_FAT_OP
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x44], ebp
call fcn.05065960
mov ecx, dword [eax + 0x2f4]
call fcn.051aa8c0
mov ebx, dword [esp + 0x12c]
push ebx
call dword [sym.imp.MSVCR90.dll_iswalpha]
add esp, 4
test eax, eax
je 0x514cd99
cmp edi, ebp
je 0x514cd99
push 0x52c722a
push 1
push 0xa3d
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
mov dword [edi], ebp
call fcn.051ae270
mov dword [esp + 0x18], eax
mov byte [esp + 0x11c], 6
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x1a
push 0x1a
mov dword [esp + 0x48], eax
movzx edi, bx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax*4 + 0x527e770]
push eax
push ecx
push 0x1a
push 0x1a
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x30]
push edi
push edi
push esi
push str.__d__META_FAT_GetDriveType_r___lc__0x_02X__:_req_s__d____s__d___cnf_s__d_
push edx
push eax
call fcn.051ae2d0
add esp, 0x30
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push 1
push ebp
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x3c]
add eax, 0xcacc
push eax
push 0x5142a10
push ecx
push 0x1a
lea edx, [esp + 0x2c]
push edx
push esi
lea ecx, [esp + 0x70]
call fcn.050659a0
mov byte [esp + 0x11c], 7
push 0x5292f00
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x11c], 8
push ebx
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
push 0x529629c
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ebx, dword [esp + 0x8c]
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
lea ebx, [ebx + ebx + 2]
call fcn.05065960
mov eax, dword [eax + 0xd58c]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push 0x1a
push eax
push esi
call fcn.051a85f0
add esp, 0x28
cmp eax, ebp
je 0x514c5c4
sub eax, 1
je 0x514c57e
sub eax, 1
je 0x514c577
sub eax, 1
je 0x514c570
mov esi, 1
jmp 0x514c583
mov esi, 8
jmp 0x514c583
mov esi, 9
jmp 0x514c583
mov esi, 0xa
mov byte [esp + 0x11c], 7
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.051af270
mov eax, esi
jmp 0x514ce11
mov ecx, dword [esp + 0x34]
push ecx
push 0x1a
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x40]
push str.fat_op
push edx
push eax
push esi
call fcn.05019f90
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x64]
lea eax, [eax + eax + 2]
push eax
add edx, ecx
push edx
lea eax, [esp + 0x98]
push eax
call fcn.051a8f60
add esp, 0x24
test eax, eax
je 0x514c6b5
push str._ERROR:
push 0xff
push 0xa67
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x11c], 9
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx ecx, word [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_CopyWideCharStrToBuf__:_failed_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov byte [esp + 0x11c], 8
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov byte [esp + 0x11c], 7
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.051af270
mov eax, 1
jmp 0x514ce11
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x52c722a
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x138], 0xa
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push 0x52c722a
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x154], 0xb
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xcacc
push eax
mov byte [esp + 0x158], 8
lea ecx, [esp + 0x110]
call fcn.051aef90
mov bl, 0xc
mov byte [esp + 0x11c], bl
push 0x52c722a
push 1
push 0xa70
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov ebp, eax
mov byte [esp + 0x11c], 0xd
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.__d__________Request________
push eax
push ebp
call fcn.051ae2d0
add esp, 0x10
mov byte [esp + 0x11c], bl
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [eax + 0xcad0]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push 1
push eax
lea ecx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
push esi
call fcn.05032d60
add esp, 0x18
lea ecx, [esp + 0x1c]
test al, al
jne 0x514c869
push str._ERROR:
push 0xff
push 0xa78
push str..FunctionPlatformMETA_fat_utf.cpp
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x11c], 0xe
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 8]
push ecx
movsx ecx, word [esp + 0x18]
push edx
push ecx
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_SendPrimitive_local_len_d__peer_len_d__fail_
push eax
push edi
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x11c], bl
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov byte [esp + 0x11c], 8
lea ecx, [esp + 0xd4]
call fcn.051af090
mov byte [esp + 0x11c], 7
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.051af270
mov eax, 2
jmp 0x514ce11
push 0x52c722a
push 1
push 0xa7c
push str..FunctionPlatformMETA_fat_utf.cpp
call fcn.051ae270
mov ebp, eax
mov byte [esp + 0x11c], 0xf
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.__d______Request_End.
push eax
push ebp
call fcn.051ae2d0
add esp, 0x10
mov byte [esp + 0x11c], bl
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov byte [esp + 0x11c], 8
lea ecx, [esp + 0xd4]
call fcn.051af090
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ebp, eax
push esi
mov ecx, 0x53f4cc8
add ebp, 0xcacc
call fcn.05065960
mov edx, dword [esp + 0x128]
push edx
mov ebx, eax
push esi
mov ecx, 0x53f4cc8
add ebx, 0xa8d0
call fcn.05065960
add eax, 0xcad0
push eax
push ebp
add ebx, 4
push ebx
lea ecx, [esp + 0x70]
call fcn.05142860
mov bl, 0x10
mov byte [esp + 0x11c], bl
mov eax, dword [esp + 0x60]
cmp eax, 0x102
jne 0x514c9e0
push str._ERROR:
push 0xff
push 0xa86
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x11c], 0x11
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx ecx, word [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_WaitForMultipleObjects___timeout_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov byte [esp + 0x11c], bl
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov byte [esp + 0x11c], 8
lea ecx, [esp + 0x60]
call fcn.05142900
mov byte [esp + 0x11c], 7
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.051af270
mov eax, 0xb
jmp 0x514ce11
test eax, eax
jne 0x514caee
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xa800
push eax
lea ecx, [esp + 0x1c]
call fcn.05019830
mov byte [esp + 0x11c], 0x12
mov edx, dword [esp + 0x14]
push edx
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xa800
call fcn.05192530
push str._WARNING:
push 0xd2
push 0xa90
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x11c], 0x13
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx ecx, word [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_Cancel_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov byte [esp + 0x11c], 0x12
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov byte [esp + 0x11c], bl
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 8]
add ecx, 0x28
call eax
mov byte [esp + 0x11c], 8
lea ecx, [esp + 0x60]
call fcn.05142900
mov byte [esp + 0x11c], 7
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.051af270
mov eax, 0x1e
jmp 0x514ce11
cmp eax, 1
je 0x514cb6b
push str._ERROR:
push 0xff
push 0xa96
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x11c], 0x14
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ebp, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
movsx ecx, word [esp + 0x14]
push eax
push ecx
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_WaitForMultipleObjects___fail____Err__u_.
push ebp
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x11c], bl
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov byte [esp + 0x11c], 8
lea ecx, [esp + 0x60]
call fcn.05142900
jmp 0x514c671
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
cmp dword [eax + 0xcae4], 0
je 0x514cc1f
push str._ERROR:
push 0xff
push 0xa9d
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x11c], 0x15
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ebp, dword [eax + 8]
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [eax + 0xcae4]
movsx eax, word [esp + 0x14]
push edx
push esi
push eax
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_g_MHA__d_.m_META_FAT_CNF_DATA.m_status__d_.
push ebp
push edi
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x11c], bl
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 0xcae4]
call fcn.05142930
mov esi, eax
mov byte [esp + 0x11c], 8
lea ecx, [esp + 0x60]
call fcn.05142900
jmp 0x514c583
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
cmp dword [eax + 0xcae8], 0
jle 0x514cc8f
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [eax + 0xcae8]
mov edx, dword [esp + 0x44]
push 0x52c722a
push 1
push 0xaa3
mov dword [edx], ecx
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov ebp, eax
mov byte [esp + 0x11c], 0x16
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
movsx ecx, word [esp + 0x14]
push edx
push edi
push ecx
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_Drive__lc:_is_type:__d__1:_nor__2__nand__3__removable__
jmp 0x514ccd5
push str._ERROR:
push 0xff
push 0xaa7
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov ebp, eax
mov byte [esp + 0x11c], 0x17
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [esp + 0x44]
mov ecx, dword [edx]
movsx edx, word [esp + 0x14]
push ecx
push edi
push edx
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_weird__Drive__lc_type__d__is_invalid.
mov eax, dword [eax + 8]
push eax
push ebp
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x11c], bl
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push 0x52c722a
push 1
push 0xaaa
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x11c], 0x18
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx ecx, word [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push esi
push str.__d__META_FAT_GetDriveType_r_token_d_:_OK.
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov byte [esp + 0x11c], bl
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov byte [esp + 0x11c], 8
lea ecx, [esp + 0x60]
call fcn.05142900
mov byte [esp + 0x11c], 7
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.051af270
xor eax, eax
jmp 0x514ce11
push str._ERROR:
push 0xff
push 0xa37
push str..FunctionPlatformMETA_fat_utf.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov ebp, eax
mov byte [esp + 0x11c], 5
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [eax + 8]
push edi
movzx eax, bx
push eax
push eax
push esi
push str.__d__META_FAT_GetDriveType_r__:_invalid_arguments__DriveLetter__lc__0x_02X___p_DiskInfo_0x_08X_.
push ecx
push ebp
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x11c], 3
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.051af270
mov eax, 0xa
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.0520b902
add esp, 0x10c
ret 0x10