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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2687
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x318
mov eax, dword [0x616dec]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2f8], ecx
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
xor eax, eax
mov dword [ebp - 0x2fc], 7
push 0x5fcbd0
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x300], 0
mov word [ebp - 0x310], ax
call fcn.00424710
sub esp, 0x18
mov dword [ebp - 4], 0
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x421302
mov eax, dword [edx]
jmp 0x421304
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x228], cx
je 0x42132f
lea ecx, [ebp - 0x228]
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421320
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
mov ecx, edx
push eax
call fcn.00424710
push 0
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x278]
call fcn.00430f90
add esp, 0x1c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2fc]
cmp eax, 8
jb 0x421376
inc eax
lea ecx, [ebp - 0x310]
push eax
push dword [ebp - 0x310]
call fcn.00424d00
push 0xb
xor eax, eax
mov dword [ebp - 0x2fc], 7
push 0x5fcbd4
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x300], 0
mov word [ebp - 0x310], ax
call fcn.00424ee0
push 0
push 0x5fcbc0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
call fcn.00424a00
push 0
push 0
push 4
push 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
push 1
cmovae eax, dword [ebp - 0x278]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4215fa
push 0
push esi
mov dword [ebp - 0x244], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x421470
lea ecx, [edi + 1]
push ecx
call fcn.005545e0
add esp, 4
mov dword [ebp - 0x2f4], eax
lea ecx, [ebp - 0x244]
push 0
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421462
mov eax, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x240]
push eax
mov byte [eax + edi], 0
call fcn.00424300
push dword [ebp - 0x2f4]
call fcn.005540dd
add esp, 4
test esi, esi
je 0x42147b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [ebp - 0x260], xmm0
mov dword [ebp - 0x254], 0
movq qword [ebp - 0x250], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
and eax, 0xfffffe00
mov dword [ebp - 0x258], eax
push 0x74
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.00556fd0
add esp, 0xc
lea ecx, [ebp - 0x2f0]
call fcn.0043ef30
mov byte [ebp - 4], 6
cmp dword [ebp - 0x230], 0
jbe 0x4215d5
cmp dword [ebp - 0x22c], 0x10
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
cmp byte [eax], 0x7b
jne 0x4215d5
push ecx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0043f060
test al, al
je 0x4215ce
push 0x5fcc24
push str.ServerIp
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 7
call fcn.0043d200
lea ecx, [ebp - 0x328]
push ecx
mov ecx, eax
call fcn.0043c430
mov esi, dword [ebp - 0x2f8]
mov ecx, esi
push eax
call fcn.00424380
lea ecx, [ebp - 0x328]
call fcn.00424340
push 0x5fcc2f
push str.WebPort
lea ecx, [ebp - 0x260]
call fcn.0043d200
mov ecx, eax
call fcn.0043c580
push 0x5fcc37
push str.ApiPort
lea ecx, [ebp - 0x260]
mov dword [esi + 0x1c], eax
call fcn.0043d200
mov ecx, eax
call fcn.0043c580
mov dword [esi + 0x18], eax
jmp 0x4215e4
push str.LoadEngineCfgFile_Error_2
jmp 0x4215da
push str.LoadEngineCfgFile_Error
push 2
call fcn.0043b3c0
add esp, 8
lea ecx, [ebp - 0x2f0]
call fcn.00421670
lea ecx, [ebp - 0x260]
call fcn.0043c230
mov eax, dword [ebp - 0x22c]
cmp eax, 0x10
jb 0x421618
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.00424d60
mov eax, dword [ebp - 0x264]
mov byte [ebp - 0x240], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
cmp eax, 8
jb 0x421651
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00424d00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret