Function at 0x4630f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1470
call fcn.0048bf20
mov eax, dword [esp + 0x1474]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push ebx
xor ebp, ebp
push 0x102f
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x523ca0]
cmp eax, ebx
je 0x46313f
push eax
call fcn.0048ace4
add esp, 4
mov dword [0x523ca0], ebx
lea ecx, [esp + 0x30]
push 0x104
push ecx
push ebx
mov dword [0x523dbc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x30]
push str.Launcher
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov al, byte [0x523c80]
test al, al
je 0x4631bb
add al, 0x30
lea edi, [esp + 0x14]
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x15], 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [str..lst]
mov cl, byte [0x4a3ad8]
dec edi
push 0x80
push 3
push 0
mov dword [edi], eax
push 0
lea edx, [esp + 0x44]
push bind
push edx
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x463208
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1470
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x463227
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1470
ret
push eax
call fcn.0048ac32
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x46324e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1470
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4635ae
lea edi, [esp + 0x134]
lea eax, [esp + 0x30]
sub edi, eax
mov ebp, 0x208
mov dword [esp + 0x2c], edi
mov esi, dword [esp + 0x2c]
jmp 0x463295
mov edi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x14], 0x13
jge 0x46334a
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov al, byte [eax + ebx]
inc ebx
dec edx
cmp al, 0x3b
mov byte [esp + 0x30], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
je 0x4632eb
cmp al, 0xd
je 0x4632eb
test edx, edx
je 0x46337a
mov eax, dword [esp + 0x1c]
inc ecx
mov al, byte [eax + ebx]
inc ebx
dec edx
cmp al, 0x3b
mov byte [esp + ecx + 0x30], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
jne 0x4632c5
test edx, edx
je 0x46337a
lea eax, [esp + ecx + 0x30]
mov cl, byte [esp + ecx + 0x30]
cmp cl, 0xd
jne 0x46331c
mov ecx, dword [esp + 0x1c]
inc ebx
dec edx
mov dword [esp + 0x18], ebx
mov cl, byte [ecx + ebx - 1]
mov dword [esp + 0x10], edx
mov byte [eax], cl
mov dword [esp + 0x20], 1
mov byte [eax], 0
lea eax, [esp + 0x30]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x463323
mov eax, dword [esp + 0x14]
add edi, 0x104
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46329f
jmp 0x46337a
test edx, edx
je 0x46337a
mov eax, dword [esp + 0x1c]
inc ebx
mov cl, byte [eax + ebx - 1]
cmp cl, 0xd
je 0x463365
dec edx
mov dword [esp + 0x10], edx
jne 0x46334e
jmp 0x463376
dec edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
je 0x46337a
inc ebx
dec edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
mov eax, dword [0x523dbc]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x4633ed
add eax, 0x1f4
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*4]
shl edx, 3
sub edx, eax
mov eax, dword [0x523ca0]
shl edx, 2
push edx
push eax
call fcn.0048c170
mov edi, eax
add esp, 8
xor eax, eax
mov dword [0x523ca0], edi
test edi, edi
je 0x4635cf
mov edx, dword [0x523dbc]
mov ecx, 0x2402c
lea ebx, [edx + edx*8]
lea ebx, [edx + ebx*4]
shl ebx, 3
sub ebx, edx
lea edi, [edi + ebx*4]
mov ebx, dword [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [0x523dbc]
mov edx, dword [esp + 0x10]
add eax, 0x1f4
mov dword [0x523dbc], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x28], ecx
jle 0x46358f
mov eax, 0x4a3a10
lea edi, [esp + 0x134]
mov dword [esp + 0x20], eax
cmp ecx, dword [eax]
jne 0x463566
cmp ecx, 0x12
ja case.default.0x463420
jmp dword [ecx*4 + 0x4635dc]
mov ecx, dword [0x523ca0]
lea esi, [ecx + ebp - 0x208]
jmp case.default.0x463420
mov edx, dword [0x523ca0]
lea esi, [edx + ebp - 0x104]
jmp case.default.0x463420
mov eax, dword [0x523ca0]
lea esi, [eax + ebp]
jmp case.default.0x463420
mov ecx, dword [0x523ca0]
lea esi, [ecx + ebp + 8]
jmp case.default.0x463420
mov edx, dword [0x523ca0]
lea esi, [edx + ebp + 0x10]
jmp case.default.0x463420
mov eax, dword [0x523ca0]
lea esi, [eax + ebp + 0x1c]
jmp case.default.0x463420
mov ecx, dword [0x523ca0]
lea esi, [ecx + ebp + 0x24]
jmp case.default.0x463420
mov edx, dword [0x523ca0]
lea esi, [edx + ebp + 0x128]
jmp case.default.0x463420
mov eax, dword [0x523ca0]
lea esi, [eax + ebp + 0x148]
jmp case.default.0x463420
mov ecx, dword [0x523ca0]
lea esi, [ecx + ebp + 0x154]
jmp case.default.0x463420
mov edx, dword [0x523ca0]
lea esi, [edx + ebp + 0x15c]
jmp case.default.0x463420
mov eax, dword [0x523ca0]
lea esi, [eax + ebp + 0x160]
jmp case.default.0x463420
mov ecx, dword [0x523ca0]
lea esi, [ecx + ebp + 0x1a0]
jmp case.default.0x463420
mov edx, dword [0x523ca0]
lea esi, [edx + ebp + 0x1a4]
jmp case.default.0x463420
mov eax, dword [0x523ca0]
lea esi, [eax + ebp + 0x224]
jmp case.default.0x463420
mov ecx, dword [0x523ca0]
lea esi, [ecx + ebp + 0x22c]
jmp case.default.0x463420
mov edx, dword [0x523ca0]
lea esi, [edx + ebp + 0x26c]
jmp case.default.0x463420
mov eax, dword [0x523ca0]
lea esi, [eax + ebp + 0x284]
jmp case.default.0x463420
mov ecx, dword [0x523ca0]
lea esi, [ecx + ebp + 0x28c]
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x463550
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add eax, 4
add edi, 0x104
cmp eax, 0x4a3a5c
mov dword [esp + 0x20], eax
jl 0x46340f
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x4633ff
mov edi, dword [esp + 0x24]
add ebp, 0x49c
inc edi
test edx, edx
mov dword [esp + 0x24], edi
jne 0x463291
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
push edi
call fcn.0048ace4
mov edx, dword [esp + 0x1488]
add esp, 4
push 0
push ebp
push 0x102f
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1470
ret