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

Disassembly:
push 0xffffffffffffffff
push 0x43a36b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov eax, dword [0x449260]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x234], eax
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x409cba
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [esp + 0x24c]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409fb4
push ebp
push ebx
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov eax, 0xaaaaaaab
mul ebp
shr edx, 3
mov dword [esi + 4], edx
lea edx, [edx + edx*2]
shl edx, 2
push edx
call fcn.0042cc63
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebp
mov edx, dword [esp + 0x250]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00417d96
add esp, 8
push 0x43c56c
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409fa8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x409db6
push edi
call ebp
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor al, al
pop ebp
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x230]
pop ebx
call fcn.00417c0f
add esp, 0x23c
ret 4
push eax
call fcn.0042cc63
mov edx, dword [esi + 0x10]
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call ebp
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
push ecx
call fcn.0042cc63
mov edx, dword [esi + 8]
lea edi, [esi + 0x14]
mov dword [edi], eax
mov ecx, dword [edx + 8]
add esp, 4
cmp ecx, 1
jbe 0x409e0b
mov byte [ecx + eax - 1], bl
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
cmp eax, 2
jbe 0x409e0b
mov ecx, dword [edi]
mov byte [ecx + eax - 2], bl
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
push 1
lea edx, [eax + 8]
push edx
mov edx, dword [eax]
mov eax, dword [esi + 0xc]
push edi
and ecx, 0x7fffffff
push ecx
add edx, eax
push edx
mov ecx, 0x47ce50
call fcn.0040c2c4
test eax, eax
je 0x409d86
mov ecx, dword [esi + 4]
shl ecx, 2
push ecx
call fcn.0042cc63
mov ecx, dword [esi + 4]
add esp, 4
cmp ecx, ebx
mov dword [esi + 0x18], eax
jbe 0x409e5e
mov dword [eax], ebx
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x18]
mov dword [eax + edx*4 - 4], ebx
mov edi, dword [edi]
mov ecx, dword [esi + 4]
add edi, 4
mov ebp, 1
dec ecx
cmp ecx, ebp
jle 0x409f16
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409e80
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x409ea2
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00401730
lea edx, [esp + 0x18]
push edx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x24c], ebx
call fcn.00409a90
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x248], 0xffffffff
jb 0x409eeb
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042cc68
add esp, 4
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x10]
mov dword [ecx + ebp*4], edi
mov eax, dword [esi + 4]
inc ebp
dec eax
cmp eax, ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edi, [edi + edx + 1]
jg 0x409e74
mov ecx, dword [esp + 0x250]
push ebx
push 0x43bb94
push ebx
push ebx
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
mov dword [esp + 0x10], eax
jle 0x409f9e
lea edi, [eax + 1]
push edi
call fcn.0042cc63
mov ebp, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
add esp, 4
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
push 0x43bb94
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x258]
push eax
push ebp
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esi, 0x28
mov eax, ebp
sub esi, ebp
nop
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x409f80
cmp ebp, ebx
je 0x409fa1
push ebp
call fcn.0042cc68
add esp, 4
mov al, 1
jmp 0x409d8f
mov byte [esi + 0x28], bl
mov al, 1
jmp 0x409d8f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
jmp 0x409d8d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor al, al
jmp 0x409d90