Function at 0x4238e0
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 0x4238f4
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x423905
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 0x423c53
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
push 0x14cd898
push esi
call edi
mov eax, 0xffff
cmp word [0x14cd898], ax
jne 0x423a0c
push ebx
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x20]
push eax
push esi
call edi
cmp word [esp + 0x14], 3
je 0x4239aa
push esi
mov word [0x14cd898], bx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
add esp, 0x618
ret
push ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push 0x14cd980
push esi
call edi
push ebx
lea edx, [esp + 0x14]
push edx
push 4
push 0x14cd98c
push esi
call edi
push ebx
lea eax, [esp + 0x14]
push eax
push 4
push 0x14cd998
push esi
call edi
push ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push 0x14cd8f4
push esi
call edi
push ebx
lea edx, [esp + 0x14]
push edx
push 4
push 0x14cd8f8
push esi
call edi
push ebx
lea eax, [esp + 0x14]
push eax
push 2
push 0x14cd898
push esi
call edi
jmp 0x423a11
mov dword [0x14cd8f4], eax
push ebx
lea ecx, [esp + 0x14]
push ecx
push 2
push 0x14cd89a
push esi
call edi
mov ax, word [0x14cd89a]
mov dx, ax
movzx eax, ax
add eax, 0xa
add dx, 0xa
lea eax, [eax + eax*2]
mov word [0x14cd4e4], dx
shl eax, 2
mov edx, 0x12985f4
call fcn.00474ce0
mov dword [0x14cd884], eax
movzx eax, word [0x14cd89a]
lea eax, [eax*4 + 0x28]
mov edx, 0x12985f4
call fcn.00474ce0
mov edx, dword [0x14cd884]
push ebx
mov dword [0x14cd894], eax
lea eax, [esp + 0x14]
push eax
movzx eax, word [0x14cd89a]
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
push edx
push esi
call edi
mov eax, dword [0x14cd898]
add eax, 0xa
mov word [0x14cd4e2], ax
movzx eax, word [0x14cd898]
add eax, 0xa
shl eax, 4
mov edx, 0x12985f4
call fcn.00474ce0
mov dword [0x14cd880], eax
movzx eax, word [0x14cd898]
add eax, 0xa
lea eax, [eax + eax*2]
shl eax, 2
mov edx, 0x12985f4
call fcn.00474ce0
movzx edx, word [0x14cd898]
push ebx
lea ecx, [esp + 0x14]
push ecx
shl edx, 4
mov dword [0x14cd890], eax
mov eax, dword [0x14cd880]
push edx
push eax
push esi
call edi
mov ax, word [0x14cd898]
cmp ax, bx
mov dword [esp + 0xc], ebx
jbe 0x423b20
mov ecx, dword [0x14cd880]
movzx edx, ax
add ecx, 0xc
mov ax, bx
lea esp, [esp]
add ax, word [ecx]
add ecx, 0x10
dec edx
mov word [esp + 0xc], ax
jne 0x423b10
jmp 0x423b25
mov ax, word [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx eax, ax
add eax, 0x1e
lea eax, [eax + eax*2]
add ecx, 0x1e
shl eax, 1
mov edx, 0x12985f4
mov word [0x14cd86a], cx
call fcn.00474ce0
movzx ecx, word [esp + 0xc]
push ebx
lea edx, [esp + 0x14]
push edx
lea ecx, [ecx + ecx*2]
shl ecx, 1
push ecx
push eax
push esi
mov dword [0x14cd888], eax
call edi
xor ecx, ecx
cmp word [0x14cd898], bx
mov dword [esp + 0xc], ebx
jbe 0x423bbb
push ebp
mov ebp, dword [0x14cd880]
mov dx, bx
jmp 0x423b80
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 + 0x10]
mov ebp, dword [0x14cd880]
add dx, word [eax + ebp + 0xc]
inc ecx
cmp cx, word [0x14cd898]
mov word [esp + 0x10], dx
jb 0x423b80
xor ebx, ebx
pop ebp
push ebx
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
push esi
call edi
mov edx, dword [esp + 0xc]
movzx eax, word [esp + 0xc]
add edx, 0x64
mov word [0x14cd868], dx
lea eax, [eax + eax + 0xc8]
mov edx, 0x12985f4
call fcn.00474ce0
movzx edx, word [esp + 0xc]
push ebx
lea ecx, [esp + 0x14]
push ecx
shl edx, 1
push edx
push eax
push esi
mov dword [0x14cd88c], eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [0x14cd898], bx
mov cx, word [esp + 0xc]
je 0x423c44
mov eax, dword [0x14cd880]
cmp word [eax + 0xc], bx
je 0x423c44
mov eax, dword [eax + 8]
mov dx, word [eax]
pop esi
pop edi
mov word [0x14cd89c], dx
mov word [0x14cd89e], cx
pop ebx
add esp, 0x618
ret
mov word [0x14cd89c], cx
mov word [0x14cd89e], cx
pop esi
pop edi
pop ebx
add esp, 0x618
ret