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

Disassembly:
push 0xffffffffffffffff
push 0x522e7cb
mov eax, dword fs:[0]
push eax
sub esp, 0x968
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x964], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x97c]
mov dword fs:[0], eax
mov esi, edx
mov ebp, dword [esp + 0x98c]
mov eax, dword [esp + 0x990]
mov edi, dword [esp + 0x994]
xor ebx, ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], ebx
cmp ebp, ebx
je 0x5162f3f
mov ecx, ebp
call fcn.051af660
test al, al
je 0x5162f35
lea edx, [esp + 0x44]
push edx
push 0x1388
push esi
call fcn.05162450
cmp eax, ebx
jne 0x5162fa2
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x5162fa2
mov eax, 0x88888889
mul ecx
shr edx, 0xb
mov dword [esp + 0x50], edx
cmp edx, ebx
jne 0x516252d
mov dword [esp + 0x50], 1
lea ecx, [esp + 0xc0]
call fcn.05160240
mov dword [esp + 0x984], 1
push 1
push ebx
lea eax, [esp + 0xc8]
push eax
push 0x51606c0
push 0xb
push 0x50
lea ecx, [esp + 0x2c]
push ecx
push esi
lea ecx, [esp + 0x78]
mov byte [esp + 0xec], 0
mov dword [esp + 0x1c0], esi
call fcn.050659a0
mov ebx, 2
mov byte [esp + 0x984], bl
xor ebp, ebp
cmp edi, ebp
je 0x5162590
mov dx, word [esp + 0x14]
mov word [edi], dx
xor edi, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x54], edi
jmp 0x51625a2
xor edi, edi
mov eax, dword [esp + 0x998]
cmp eax, edi
je 0x51625b9
cmp dword [eax], 0x2694
je 0x5162a44
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push edi
lea edx, [esp + 0x1c]
push edx
call eax
test eax, eax
jne 0x5162acb
push 0x7d0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
push 0x4f
push eax
push esi
mov dword [esp + 0x50], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x90], edi
call fcn.051a85f0
add esp, 0x28
cmp eax, edi
jne 0x5162b5d
push 0xb
push 0x4f
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
push str.type
push ecx
push edx
push esi
call fcn.05019f90
mov eax, dword [esp + 0x30]
add esp, 0x18
push eax
push 0x4f
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
push str.cmd.m_u4RamDiskReqOffset
push ecx
push edx
push esi
call fcn.0501a0b0
add esp, 0x18
push 0x52c722a
push 1
push 0x44a
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x94]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 5
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.__d__________Request________
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x84]
call fcn.051ae2c0
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x24]
push 1
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call fcn.05048250
add esp, 0x10
test al, al
je 0x5162bb5
push 0x52c722a
push 1
push 0x456
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0xa8]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 7
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.__d______Request_End.
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x98]
call fcn.051ae2c0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0xc4]
push 0x2710
push 0
lea edx, [esp + 0x84]
add eax, 0xa8d0
mov eax, dword [eax + 4]
push edx
push ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x5162859
push str._WARNING:
push 0xd2
push 0x464
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0xbc]
inc ebp
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 8
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx ecx, word [esp + 0x14]
mov eax, dword [eax + 8]
push ebp
push ecx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_WaitForMultipleObjects__:_timeout___retry__u_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x984], bl
lea ecx, [esp + 0xac]
call fcn.051ae2c0
cmp ebp, 1
jb 0x51625a0
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
call edx
lea ecx, [esp + 0x2c]
test eax, eax
je 0x5162e1a
push str._ERROR:
push 0xff
push 0x4b8
push str..FunctionPlatformMETA_misc_ex.cpp
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 0xe
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x18]
movsx edx, word [esp + 0x14]
push ecx
push edx
jmp 0x5162b08
cmp eax, 1
jne 0x5162c44
mov edx, dword [esp + 0x18]
xor ebp, ebp
mov dword [esp + 0x48], ebp
cmp edx, dword [esp + 0xd0]
jne 0x51629d7
cmp dword [esp + 0x19c], ebp
jne 0x5162cdd
cmp byte [esp + 0xd4], 0
mov eax, dword [esp + 0x974]
je 0x516289f
test eax, eax
je 0x51627fd
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 0
lea edi, [esp + 0x50]
push edi
push eax
lea eax, [esp + 0x1b0]
push eax
call edx
test eax, eax
jne 0x5162d31
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [esp + 0x974]
jb 0x5162d79
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
add ecx, eax
mov eax, edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
test eax, eax
jge 0x51628f1
fadd dword [0x5294fc4]
mov eax, ecx
fstp dword [esp + 0x20]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
test eax, eax
jge 0x5162909
fadd dword [0x5294fc4]
mov edi, dword [esp + 0x44]
mov eax, edi
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
test eax, eax
jge 0x5162921
fadd dword [0x5294fc4]
fdivp st(1)
fld dword [esp + 0x20]
fnstcw word [esp + 0x20]
fld st(0)
movzx eax, word [esp + 0x20]
fmulp st(2)
or eax, 0xc00
fxch st(1)
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp dword [esp + 0x1c]
mov ax, word [esp + 0x1c]
movzx eax, ax
movzx ebp, ax
fldcw word [esp + 0x20]
cmp edx, ebp
jae 0x516295d
movzx eax, dx
movzx ebp, word [esp + 0x54]
movzx edx, ax
mov dword [esp + 0x1c], edx
sub edx, ebp
test edx, edx
jle 0x51629be
movzx edx, ax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x74]
test edx, edx
je 0x51629be
fidivr dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x18]
push eax
push edi
push ecx
fmul qword [0x524ff68]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp dword [esp + 0x2c]
mov cl, byte [esp + 0x2c]
movzx eax, cl
push eax
fldcw word [esp + 0x34]
call edx
jmp 0x51629c0
fstp st(0)
cmp byte [esp + 0xd4], 0
mov ebp, dword [esp + 0x48]
jne 0x51627fd
jmp 0x51625a0
push str._WARNING:
push 0xd2
push 0x4af
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 0xd
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xd0]
mov eax, dword [eax + 8]
push ecx
movsx ecx, word [esp + 0x18]
push edx
push ecx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_ignore_this_confirm___misc_ex_cnf.m_Result.m_rRamDiskFrm.m_u4CurOffset__d___expected_offset__d_.
push eax
push edi
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
jmp 0x51625a0
push str._ERROR:
push 0xff
push 0x41b
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 3
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_User_decide_to_stop_current_procedure.
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
mov byte [esp + 0x984], 1
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.051601f0
mov eax, 0x3b
jmp 0x5162fa2
push str._ERROR:
push 0xff
push 0x425
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 4
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [esp + 0x18]
movsx ecx, word [esp + 0x14]
push edx
push ecx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_IO_Base__Tell__:_fail___total__u_bytes_read_from_FAT.
mov eax, dword [eax + 8]
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
mov byte [esp + 0x984], 1
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.051601f0
mov eax, 1
jmp 0x5162fa2
sub eax, 1
je 0x5162b81
sub eax, 1
je 0x5162b7a
sub eax, 1
je 0x5162b73
mov esi, 1
jmp 0x5162b86
mov esi, 8
jmp 0x5162b86
mov esi, 9
jmp 0x5162b86
mov esi, 0xa
mov byte [esp + 0x984], 1
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.051601f0
mov eax, esi
jmp 0x5162fa2
push str._ERROR:
push 0xff
push 0x452
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 6
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [esp + 0x24]
movsx ecx, word [esp + 0x14]
mov eax, dword [eax + 8]
push edx
push ecx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_SendPrimitive_local_len_d__fail_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
mov byte [esp + 0x984], 1
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.051601f0
mov eax, ebx
jmp 0x5162fa2
push str._ERROR:
push 0xff
push 0x46a
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 9
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [esp + 0x18]
mov ebp, dword [eax + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movsx eax, word [esp + 0x1c]
push eax
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_WaitForMultipleObjects__:_fail____Err__u___total__u_bytes_read_from_FAT.
push ebp
push edi
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
mov byte [esp + 0x984], 1
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.051601f0
mov eax, 1
jmp 0x5162fa2
push str._ERROR:
push 0xff
push 0x479
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 0xa
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x19c]
mov eax, dword [eax + 8]
push ecx
movsx ecx, word [esp + 0x18]
push edx
push ecx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_misc_ex_cnf.m_Status__d___total__u_bytes_read_from_FAT.
push eax
jmp 0x5162c92
push str._ERROR:
push 0xff
push 0x489
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 0xb
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [esp + 0x18]
movsx ecx, word [esp + 0x14]
push edx
push ecx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_IO_Base__Write__:_fail___total__u_bytes_read_from_FAT.
jmp 0x5162b0e
push str._ERROR:
push 0xff
push 0x490
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 0xc
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 8]
add edx, ecx
push edx
mov edx, dword [esp + 0x978]
push edx
push ecx
movsx ecx, word [esp + 0x20]
push ecx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_incoming_data_exceed_limitaion__only__lu__lu_bytes_accept._total__u_bytes_read_from_FAT.
push eax
push edi
call fcn.051ae2d0
add esp, 0x20
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
mov byte [esp + 0x984], 1
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.051601f0
mov eax, 5
jmp 0x5162fa2
cmp ebp, 1
jne 0x5162eb0
push str._ERROR:
push 0xff
push 0x4be
push str..FunctionPlatformMETA_misc_ex.cpp
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 0xf
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x18]
movsx edx, word [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push ebp
push edx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_retry__u_times_failed____total__u_bytes_read_from_FAT.
push eax
push edi
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
mov byte [esp + 0x984], 1
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.051601f0
lea eax, [ebp + 0xa]
jmp 0x5162fa2
push 0x52c722a
push 1
push 0x4c2
push str..FunctionPlatformMETA_misc_ex.cpp
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x984], 0x10
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x18]
movsx edx, word [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push edx
push esi
push str.__d__META_MISC_RamDisk_Read_Ex_token_d_:_OK.___total__u_bytes_read_from_FAT.
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0x984], bl
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
mov byte [esp + 0x984], 1
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.051601f0
xor eax, eax
jmp 0x5162fa2
mov ecx, ebp
call fcn.051af660
movzx ebx, al
push str._ERROR:
push 0xff
push 0x3f3
push str..FunctionPlatformMETA_misc_ex.cpp
lea ecx, [esp + 0x3c]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x984], 0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push ebx
push ebp
push esi
push str.__d__META_MISC_RamDisk_Read_Ex__:_invalid_arguments__io_0x_08X___IsOK___d.
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov dword [esp + 0x984], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.051ae2c0
mov eax, 0xa
mov ecx, dword [esp + 0x97c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x964]
xor ecx, esp
call fcn.0520b902
add esp, 0x974
ret 0x10