Function at 0x404920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x4db6b4]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [0x521f44], edi
mov dword [0x521f40], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0xff
and ax, cx
movzx ecx, ax
xor eax, eax
movzx ecx, cx
cmp ecx, dword [eax*4 + 0x41a2f4]
je 0x404961
inc eax
cmp eax, 3
jl 0x404952
cmp eax, 3
jne 0x40496b
mov eax, 2
mov ecx, dword [0x4db6b8]
mov edx, dword [str.win32]
mov dword [0x522764], eax
mov ax, word [0x417510]
push 0x8000
push ecx
mov dword [0x5a2a40], edx
mov word [0x5a2a44], ax
call fcn.0040ffae
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x4049aa
push 1
call fcn.00401190
push esi
push 2
push 0xfffffffffffffffc
push ebp
call fcn.0041175a
push 4
lea edx, [esp + 0x24]
push edx
push ebp
call fcn.0040f792
mov eax, dword [esp + 0x2c]
push edi
push eax
push ebp
call fcn.0041175a
add esp, 0x24
mov esi, 0x5a27a0
push 1
push esi
push ebp
call fcn.0040f792
mov cl, byte [esi]
add esp, 0xc
inc esi
test cl, cl
jne 0x4049d6
push 4
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.0040f792
push 4
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.0040f792
push 0x24
lea ecx, [esp + 0x44]
push ecx
push ebp
call fcn.0040f792
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
add eax, edx
add esp, 0x24
mov dword [0x5a2a60], eax
test al, 1
je 0x404a2c
inc eax
mov dword [0x5a2a60], eax
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jle 0x404a42
mov edx, dword [esp + 0x48]
inc ecx
imul ecx, eax
lea esi, [ecx + edx + 2]
jmp 0x404a72
mov ecx, dword [esp + 0x48]
imul eax, eax, 0x81
lea esi, [eax + ecx + 2]
cmp esi, 0x40000
mov dword [0x4dd604], esi
jge 0x404a65
mov esi, 0x40000
jmp 0x404a72
cmp esi, 0x80000
jle 0x404a78
mov esi, 0x80000
mov dword [0x4dd604], esi
lea edi, [esi*4 + 0x45204]
push ebx
lea edx, [esi + 0x1040]
push edi
mov dword [0x4dcb2c], edx
mov dword [0x4dcb30], edi
call fcn.00406acc
mov ebx, eax
add esp, 4
mov dword [0x4dd608], ebx
test ebx, ebx
jne 0x404ab7
push ebp
call fcn.0040c5be
add esp, 4
push 1
call fcn.00401190
push edi
push 0
push ebx
call fcn.0040d920
lea edx, [esi + 0x105]
lea ecx, [ebx + esi*4 + 0x410]
add esp, 0xc
mov eax, 0x4dcd64
mov esi, 0xdad00402
lea ebx, [ebx]
lea edi, [edx - 0x104]
mov dword [eax - 4], edi
mov dword [ecx - 0x410], esi
mov dword [eax], edx
mov dword [ecx], esi
lea edi, [edx + 0x104]
mov dword [eax + 4], edi
mov dword [ecx + 0x410], esi
lea edi, [edx + 0x208]
mov dword [eax + 8], edi
mov dword [ecx + 0x820], esi
add eax, 0x10
add ecx, 0x1040
add edx, 0x410
cmp eax, 0x4dcda4
jl 0x404ae0
mov edi, ebx
mov dword [0x4dcdb0], 0
mov ecx, 9
lea esi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add ecx, eax
lea edx, [ecx*4 - 0x24]
push edx
add ebx, 0x24
push ebx
push ebp
call fcn.0040f792
mov ecx, dword [0x4dd608]
mov eax, dword [ecx]
add esp, 0xc
test eax, 0x200
je 0x404b7d
add eax, 0xfffffe00
mov dword [0x51e234], 1
mov dword [ecx], eax
mov ecx, dword [ecx]
test ecx, ecx
je 0x404b8f
cmp ecx, 1
je 0x404b8f
push 2
call fcn.00401190
push 4
push 0x51d620
push ebp
call fcn.0040f792
push 4
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.0040f792
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00406acc
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x14], esi
test esi, esi
jne 0x404bd4
push str.memoria_insuficiente_n
call fcn.00406b96
add esp, 4
push 1
call fcn.00406f50
mov edx, dword [esp + 0x10]
push edx
push esi
push ebp
call fcn.0040f792
push ebp
call fcn.0040c5be
mov eax, dword [0x51d620]
shl eax, 4
push eax
call fcn.00406acc
add esp, 0x14
test eax, eax
jne 0x404c0f
push str.memoria_insuficiente_n
call fcn.00406b96
add esp, 4
push 1
call fcn.00406f50
xor ebx, ebx
cmp dword [0x51d620], ebx
mov dword [0x56277c], eax
jle 0x404c68
xor ebp, ebp
jmp 0x404c27
mov eax, dword [0x56277c]
mov cl, byte [esi]
inc esi
push esi
mov byte [eax + ebp], cl
lea edi, [eax + ebp]
call fcn.00406c5b
add esp, 4
mov dword [edi + 8], eax
cmp byte [esi], 0
je 0x404c47
inc esi
cmp byte [esi], 0
jne 0x404c41
mov edx, dword [esi + 1]
inc esi
add esi, 4
mov dword [edi + 0xc], edx
movzx eax, byte [esi]
inc ebx
mov dword [edi + 4], eax
inc esi
add ebp, 0x10
cmp ebx, dword [0x51d620]
jl 0x404c22
mov esi, dword [esp + 0x14]
push esi
call fcn.004067d4
mov esi, dword [0x4dd608]
push str.argc
push 0
mov dword [0x51e238], esi
mov dword [0x51e23c], esi
mov dword [0x5a2a64], 0x100
mov dword [0x5a2a30], 0
call fcn.004060b0
mov edi, eax
push str.argv
push 0
mov dword [esp + 0x3c], edi
call fcn.004060b0
mov ebp, dword [0x4dd604]
mov ecx, dword [esp + 0x38]
add esp, 0x14
add ebp, 0x408
cmp ecx, 0xa
mov dword [esi + edi*4], ecx
jle 0x404cd4
mov dword [esi + edi*4], 0xa
xor edx, edx
cmp dword [esi + edi*4], edx
mov dword [esp + 0x14], edx
jle 0x404d41
lea ebx, [esi + eax*4]
mov ecx, dword [edx*4 + 0x4db6b8]
cmp byte [ecx], 0
jne 0x404cf6
mov dword [ebx], 0
jmp 0x404d34
mov eax, ecx
lea edi, [eax + 1]
jmp 0x404d00
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404d00
sub eax, edi
mov edi, eax
lea edx, [edi + 1]
push edx
push ecx
lea eax, [esi + ebp*4]
push eax
call fcn.00409c60
lea eax, [edi + 4]
mov edi, dword [esp + 0x34]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x20]
sar eax, 2
add esp, 0xc
mov dword [ebx], ebp
add ebp, eax
inc edx
add ebx, 4
cmp edx, dword [esi + edi*4]
mov dword [esp + 0x14], edx
jl 0x404ce2
call fcn.004012e0
test eax, eax
jne 0x404d51
push 7
call fcn.00401190
mov ecx, dword [0x4dcb40]
mov edx, dword [0x4dcb44]
add ecx, 0xfffffec0
add edx, 0xffffff38
sar ecx, 1
sar edx, 1
mov dword [0x4dcc88], 0x140
mov dword [0x4dcc8c], 0xc8
mov dword [0x4dcc90], 8
mov dword [0x4dcc94], 1
mov dword [0x4dcc80], ecx
mov dword [0x4dcc84], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x41a33c]
add ecx, eax
mov dword [0x4db68c], ecx
call fcn.004052f0
mov dword [0x4db7f0], eax
test eax, eax
je 0x404dca
mov byte [0x41a0e1], 0
call fcn.00401520
call fcn.00405410
push 0
call fcn.00404de0
int3