Function at 0x423c60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x618
push ebx
lea edx, [esp + 0x10]
sub edx, eax
push edi
xor ebx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x423c74
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x423c85
sub eax, edx
push 1
mov dword [esp + eax + 0x15], 0x49414e
mov word [0x14cd89c], bx
mov word [0x14cd898], bx
call fcn.0043d050
push 2
lea eax, [esp + 0x1c]
push ebx
push eax
lea edi, [esp + 0x124]
call fcn.00472860
add esp, 0x10
test eax, eax
je 0x423d1a
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x118]
push ebx
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x18]
push edx
push esi
call edi
mov ax, word [esp + 0xc]
cmp ax, 0xffff
jne 0x423d8a
push ebx
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
push esi
call edi
cmp word [esp + 0xc], 3
je 0x423d23
mov word [0x14cd898], bx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
add esp, 0x618
ret
push ebx
lea edx, [esp + 0x14]
push edx
push 4
push 0x14cd980
push esi
call edi
push ebx
lea eax, [esp + 0x14]
push eax
push 4
push 0x14cd98c
push esi
call edi
push ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push 0x14cd998
push esi
call edi
push ebx
lea edx, [esp + 0x14]
push edx
push 4
push 0x14cd8f4
push esi
call edi
push ebx
lea eax, [esp + 0x14]
push eax
push 4
push 0x14cd8f8
push esi
call edi
push ebx
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x18]
push edx
push esi
call edi
mov ax, word [esp + 0xc]
jmp 0x423d94
mov dword [0x14cd8f4], 0xffff
cmp word [0x14cd4e2], ax
jb 0x423d12
push ebx
mov word [0x14cd898], ax
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
push esi
call edi
mov ax, word [esp + 0xc]
cmp word [0x14cd4e4], ax
jb 0x423d12
mov ecx, dword [0x14cd884]
mov word [0x14cd89a], ax
movzx eax, ax
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [eax + eax*2]
shl eax, 2
push eax
push ecx
push esi
call edi
movzx eax, word [0x14cd898]
mov ecx, dword [0x14cd880]
push ebx
lea edx, [esp + 0x14]
push edx
shl eax, 4
push eax
push ecx
push esi
call edi
mov ax, word [0x14cd898]
cmp ax, bx
mov dword [esp + 0x14], ebx
jbe 0x423e4a
mov ecx, dword [0x14cd880]
movzx edx, ax
add ecx, 0xc
mov ax, bx
add ax, word [ecx]
add ecx, 0x10
dec edx
mov word [esp + 0x14], ax
jne 0x423e22
cmp ax, word [0x14cd86a]
jbe 0x423e4f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
add esp, 0x618
ret
mov ax, word [esp + 0x14]
mov ecx, dword [0x14cd888]
movzx eax, ax
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [eax + eax*2]
shl eax, 1
push eax
push ecx
push esi
call edi
xor ecx, ecx
cmp word [0x14cd898], bx
mov dword [esp + 0x14], ebx
jbe 0x423ebc
push ebp
mov ebp, dword [0x14cd880]
mov dx, bx
mov ebx, dword [0x14cd888]
movzx edx, dx
movzx eax, cx
lea edx, [edx + edx*2]
shl eax, 4
lea edx, [ebx + edx*2]
mov dword [eax + ebp + 8], edx
mov dx, word [esp + 0x18]
mov ebp, dword [0x14cd880]
add dx, word [eax + ebp + 0xc]
inc ecx
cmp cx, word [0x14cd898]
mov word [esp + 0x18], dx
jb 0x423e81
xor ebx, ebx
pop ebp
push ebx
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x20]
push ecx
push esi
call edi
mov ax, word [esp + 0x14]
cmp ax, word [0x14cd868]
ja 0x423d12
mov ecx, dword [0x14cd88c]
push ebx
movzx eax, ax
lea edx, [esp + 0x14]
push edx
shl eax, 1
push eax
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [0x14cd898], bx
mov cx, word [esp + 0x14]
je 0x423f22
mov eax, dword [0x14cd880]
cmp word [eax + 0xc], bx
je 0x423f22
mov edx, dword [eax + 8]
mov ax, word [edx]
mov word [0x14cd89c], ax
jmp 0x423f29
mov word [0x14cd89c], cx
pop esi
pop edi
mov word [0x14cd96c], bx
mov word [0x14cd89e], cx
pop ebx
add esp, 0x618
jmp fcn.00423f50