Function at 0x417cd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x234
mov ax, word [0x4da9a0]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov word [esp + 0x3c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
rep stosd dword es:[edi], eax
xor ebx, ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
stosw word es:[edi], ax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [ebp + 4]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
shl esi, 1
mov ecx, esi
push 2
neg ecx
push ebx
push ecx
push edx
call edi
mov edx, dword [ebp + 4]
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x44]
push esi
push ecx
push edx
call ebx
cmp esi, dword [esp + 0x10]
jne 0x41803a
lea eax, [esp + 0x3c]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x41803a
mov esi, dword [esp + 0x10]
mov edx, dword [ebp + 4]
mov ecx, 0xfffffffc
push 1
sub ecx, esi
push eax
push ecx
push edx
call edi
mov edx, dword [ebp + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x34]
push 4
push ecx
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 4]
add ecx, eax
push 1
push 0
neg ecx
push ecx
push edx
call edi
mov edx, dword [ebp + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push edx
call ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
test eax, eax
jbe 0x417ff2
lea esi, [ebp + 0x26e0]
lea edi, [ebp + 0x5cf7c]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x10]
push 0
lea ebx, [edi - 0x18]
push eax
push 0x20
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [ebx], eax
mov dword [edi - 0x14], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
add dword [edi - 0x10], edx
mov edx, dword [edi - 0xc]
adc edx, ecx
mov dword [edi - 0xc], edx
mov dword [edi], eax
mov dword [edi + 4], eax
mov edx, dword [edi - 8]
mov ecx, dword [edi - 0x10]
sub edx, ecx
mov ecx, dword [edi - 4]
sbb ecx, dword [edi - 0xc]
add edx, 1
adc ecx, eax
mov eax, dword [esp + 0x20]
add eax, edx
mov edx, dword [esp + 0x24]
adc edx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0xc]
mov ebx, eax
sub edx, eax
sar edx, 2
cmp edx, 1
jae 0x417f4a
mov edx, dword [esi + 4]
test edx, edx
je 0x417e6e
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x417e73
mov ecx, 1
test edx, edx
jne 0x417e7b
xor eax, eax
jmp 0x417e80
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x30], eax
jge 0x417e8c
xor eax, eax
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esp + 0x3c], eax
mov ebp, eax
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x417ecb
jmp 0x417eaf
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.00490f90
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 4
add ebp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x417eab
lea ecx, [esp + 0x14]
push ecx
push 1
push ebp
mov ecx, esi
call fcn.00437060
mov edx, dword [esi + 8]
add ebp, 4
push ebp
push edx
push ebx
mov ecx, esi
call fcn.0046e2b0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00437050
mov edx, dword [esi + 4]
push edx
call fcn.004ad125
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 4
lea edx, [eax + ecx*4]
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esi + 0xc], edx
jne 0x417f2f
mov ebp, dword [esp + 0x34]
xor edx, edx
mov dword [esi + 4], eax
lea ecx, [eax + edx*4 + 4]
mov dword [esi + 8], ecx
jmp 0x417fda
mov edx, dword [esi + 8]
mov ebp, dword [esp + 0x34]
sub edx, ecx
mov dword [esi + 4], eax
sar edx, 2
lea ecx, [eax + edx*4 + 4]
mov dword [esi + 8], ecx
jmp 0x417fda
mov ecx, eax
sub ecx, ebx
sar ecx, 2
cmp ecx, 1
jae 0x417f98
lea edx, [ebx + 4]
mov ecx, esi
push edx
push eax
push ebx
call fcn.0046e2b0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
mov edx, eax
push ecx
sub edx, ebx
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00437060
mov eax, dword [esi + 8]
cmp ebx, eax
je 0x417fd6
mov edx, dword [esp + 0x14]
mov dword [ebx], edx
add ebx, 4
cmp ebx, eax
jne 0x417f89
jmp 0x417fd6
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x38], ecx
push ecx
mov ecx, esi
call fcn.0046e2b0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp ebx, eax
je 0x417fc2
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, ebx
mov dword [ecx], edx
jne 0x417fb3
lea eax, [ebx + 4]
cmp ebx, eax
je 0x417fd6
mov ecx, dword [esp + 0x14]
mov dword [ebx], ecx
add ebx, 4
cmp ebx, eax
jne 0x417fc9
add dword [esi + 8], 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
add edi, 0x20
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x417de7
mov edx, dword [ebp + 0x5d0a8]
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0x5d0ac]
mov ecx, dword [esp + 0x24]
sub edx, esi
pop edi
sbb eax, ecx
mov dword [ebp + 0x5d0c0], edx
mov dword [ebp + 0x5d0c4], eax
mov ecx, dword [ebp + 0x5d0c0]
mov edx, eax
mov dword [ebp + 0x5d0b8], ecx
mov dword [ebp + 0x5d0bc], edx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x234
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x234
ret