Function at 0x1008daaf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ad54a
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10226180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.1008b310
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x40], 2
jb 0x1008d906
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx edx, word [ebp - 0x30]
mov dword [ebp - 0x18], edx
jmp 0x1008d91d
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [ebp - 0x18], 0x14a
jle 0x1008d951
cmp dword [ebp - 0x18], 0x1e87
jge 0x1008d951
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, 0x1f
cdq
mov ecx, 3
idiv ecx
sub eax, 0x64
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x1e87
jl 0x1008d966
mov edx, dword [ebp - 0x18]
sub edx, 0x1e87
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x3c], 0
jmp 0x1008d978
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x18]
jge 0x1008dd9f
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0xe
ja case.0x1008d9bb.10
mov eax, dword [ebp - 0x44]
jmp dword [eax*4 + 0x1008e09c]
push 0x120
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x48], 0
je 0x1008d9ec
mov ecx, dword [ebp - 0x48]
call fcn.1008d010
mov dword [ebp - 0x4c], eax
jmp 0x1008d9f3
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], edx
jmp case.0x1008d9bb.10
push 0x168
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x50], 0
je 0x1008da3b
mov ecx, dword [ebp - 0x50]
call fcn.100925a0
mov dword [ebp - 0x54], eax
jmp 0x1008da42
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x10], ecx
jmp case.0x1008d9bb.10
push 0x1c8
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x58], 0
je 0x1008da8a
mov ecx, dword [ebp - 0x58]
call fcn.10097380
mov dword [ebp - 0x5c], eax
jmp 0x1008da91
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xac], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x10], eax
jmp case.0x1008d9bb.10
push 0x168
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x60], 0
je 0x1008dad9
mov ecx, dword [ebp - 0x60]
call fcn.1008fec0
mov dword [ebp - 0x64], eax
jmp 0x1008dae0
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x10], edx
jmp case.0x1008d9bb.10
push 0x130
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x68], 0
je 0x1008db28
mov ecx, dword [ebp - 0x68]
call fcn.10096f00
mov dword [ebp - 0x6c], eax
jmp 0x1008db2f
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x10], ecx
jmp case.0x1008d9bb.10
push 0x158
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 5
cmp dword [ebp - 0x70], 0
je 0x1008db77
mov ecx, dword [ebp - 0x70]
call fcn.10096030
mov dword [ebp - 0x74], eax
jmp 0x1008db7e
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x10], eax
jmp case.0x1008d9bb.10
push 0x130
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 6
cmp dword [ebp - 0x78], 0
je 0x1008dbc6
mov ecx, dword [ebp - 0x78]
call fcn.10096b10
mov dword [ebp - 0x7c], eax
jmp 0x1008dbcd
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x10], edx
jmp case.0x1008d9bb.10
push 0x138
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 7
cmp dword [ebp - 0x80], 0
je 0x1008dc18
mov ecx, dword [ebp - 0x80]
call fcn.10099980
mov dword [ebp - 0x84], eax
jmp 0x1008dc22
mov dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x10], ecx
jmp case.0x1008d9bb.10
push 0x160
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 8
cmp dword [ebp - 0x88], 0
je 0x1008dc79
mov ecx, dword [ebp - 0x88]
call fcn.10091570
mov dword [ebp - 0x8c], eax
jmp 0x1008dc83
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
jmp case.0x1008d9bb.10
push 0x128
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 9
cmp dword [ebp - 0x90], 0
je 0x1008dcda
mov ecx, dword [ebp - 0x90]
call fcn.1008cd10
mov dword [ebp - 0x94], eax
jmp 0x1008dce4
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x10], edx
jmp case.0x1008d9bb.10
push 0x160
call fcn.10150df0
add esp, 4
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 0xa
cmp dword [ebp - 0x98], 0
je 0x1008dd35
mov ecx, dword [ebp - 0x98]
call fcn.10094fd0
mov dword [ebp - 0x40], eax
jmp 0x1008dd3c
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x1008dd77
push 0xf9
push 0x101ead88
push str.Unknown_type_UserInterface___
push 0x101ead54
call fcn.10051890
add esp, 0x10
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
call edx
nop
jmp 0x1008d96f
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [ebp - 0x28], 0
jle 0x1008de3d
mov byte [ebp - 0x24], 0
lea ecx, [ebp - 0x29]
call fcn.100072f0
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
push ecx
lea ecx, [ebp - 0xdc]
call fcn.100215f0
mov dword [ebp - 4], 0xb
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0
lea ecx, [ebp - 0xdc]
call fcn.1001a010
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0xdc]
call fcn.1001a010
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x48
call fcn.10008e10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.1001a0f0
nop
jmp 0x1008de4e
push 0x101d12d7
mov ecx, dword [ebp - 0x1c]
add ecx, 0x48
call fcn.10008e10
nop
push 0
lea edx, [ebp - 0x14]
push edx
push 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0xf4
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0x104
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
mov eax, dword [ebp - 0x1c]
add eax, 0xec
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
mov eax, dword [ebp - 0x1c]
add eax, 0xf0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [ebp - 0x34], 0
jle 0x1008df4f
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x2a]
call fcn.100072f0
push eax
lea edx, [ebp - 0x21]
push edx
mov eax, dword [ebp - 0x34]
add eax, 1
push eax
lea ecx, [ebp - 0xec]
call fcn.100215f0
mov dword [ebp - 4], 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 0
lea ecx, [ebp - 0xec]
call fcn.1001a010
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0xec]
call fcn.1001a010
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x64
call fcn.10008e10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.1001a0f0
nop
mov dword [ebp - 0x20], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [ebp - 0x20], 0
jle 0x1008dfee
mov byte [ebp - 0x22], 0
lea ecx, [ebp - 0x2b]
call fcn.100072f0
push eax
lea ecx, [ebp - 0x22]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
lea ecx, [ebp - 0xfc]
call fcn.100215f0
nop
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
lea ecx, [ebp - 0xfc]
call fcn.1001a010
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x118], 0
je 0x1008dfe2
push 0x11f
push str.C:UsersAKINCIDesktop2383000004.0.RPGuarDv2383_ClientSourceRPGuarDv2383N3BASEN3UIBase.cpp
push 0x101eae68
push 0x101eae54
call fcn.10051890
add esp, 0x10
lea ecx, [ebp - 0xfc]
call fcn.1001a0f0
nop
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [ebp - 0x20], 0
jle 0x1008e086
mov byte [ebp - 0x23], 0
lea ecx, [ebp - 0x35]
call fcn.100072f0
push eax
lea ecx, [ebp - 0x23]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
lea ecx, [ebp - 0x10c]
call fcn.100215f0
nop
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
lea ecx, [ebp - 0x10c]
call fcn.1001a010
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x11c], 0
je 0x1008e07a
push 0x128
push 0x101eadf0
push 0x101eaef4
push 0x101eaee0
call fcn.10051890
add esp, 0x10
lea ecx, [ebp - 0x10c]
call fcn.1001a0f0
nop
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4