Function at 0x420d90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
nop
mov eax, 0x34
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.msvcrt.dll__read
add esp, 0xc
movzx eax, byte [ebp - 0x2f]
cmp eax, 1
jne 0x420dcf
movzx eax, word [ebp - 0x22]
cmp eax, 3
jne 0x420dcf
jmp 0x420de7
mov eax, str.bad_architecture
push eax
call fcn.00404020
add esp, 4
mov eax, 0xffffffff
jmp 0x4212a7
movzx eax, word [ebp - 4]
mov ecx, 0x28
imul eax, ecx
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041fd0f
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, 0
mov dword [ebp - 0x4c], eax
mov eax, 0
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x68], eax
mov eax, 0
mov dword [ebp - 0x60], eax
mov eax, 0
mov dword [ebp - 0x6c], eax
mov eax, 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
movzx ecx, word [ebp - 4]
cmp eax, ecx
jge 0x420f3d
jmp 0x420e69
mov eax, dword [ebp - 0x44]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov ecx, eax
add eax, 0x28
mov dword [ebp - 0x3c], eax
jmp 0x420e3d
mov eax, dword [ebp - 0x3c]
add eax, 4
mov ecx, dword [eax]
jmp 0x420e7b
cmp ecx, 6
jne 0x420ebd
mov eax, dword [ebp - 0x3c]
add eax, 0x14
mov ecx, dword [eax]
shr ecx, 3
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov ecx, dword [ebp - 0x3c]
add ecx, 0x14
mov edx, dword [ecx]
push edx
mov ecx, dword [eax]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041fd0f
add esp, 0xc
mov dword [ebp - 0x68], eax
jmp 0x420f38
cmp ecx, 0xb
jne 0x420f33
mov eax, dword [ebp - 0x3c]
add eax, 0x14
mov ecx, dword [eax]
shr ecx, 4
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov ecx, dword [ebp - 0x3c]
add ecx, 0x14
mov edx, dword [ecx]
push edx
mov ecx, dword [eax]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041fd0f
add esp, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
add eax, 0x18
mov ecx, dword [eax]
mov eax, 0x28
imul ecx, eax
mov eax, dword [ebp - 0x38]
add eax, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add eax, 0x10
mov ecx, dword [ebp - 0x40]
add ecx, 0x14
mov edx, dword [ecx]
push edx
mov ecx, dword [eax]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041fd0f
add esp, 0xc
mov dword [ebp - 0x6c], eax
jmp 0x420f38
jmp 0x420f38
jmp 0x420e51
mov eax, dword [ebp + 0x10]
push eax
call fcn.00403258
add esp, 4
mov dword [ebp - 0x74], eax
mov eax, 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
jge 0x420fa5
jmp 0x420f85
mov eax, dword [ebp - 0x44]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
mov ecx, eax
add eax, 8
mov dword [ebp - 0x64], eax
jmp 0x420f5a
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
cmp ecx, 0xe
jne 0x420fa3
mov eax, dword [ebp - 0x64]
add eax, 4
mov ecx, dword [ebp - 0x6c]
mov edx, dword [eax]
add ecx, edx
mov dword [ebp - 0x74], ecx
jmp 0x420f6d
mov eax, 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
add eax, 0x30
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax]
cmp ecx, edx
jge 0x42102e
jmp 0x420fd2
mov eax, dword [ebp - 0x44]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x44], eax
jmp 0x420fad
mov eax, dword [ebp + 8]
add eax, 0x2c
mov ecx, dword [ebp - 0x44]
shl ecx, 2
mov edx, dword [eax]
add edx, ecx
mov eax, dword [edx]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
add eax, 8
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x421007
jmp 0x42102c
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
cmp ecx, edx
jge 0x42101f
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, 0
mov dword [ebp - 0x58], eax
jmp 0x42126f
jmp 0x420fc5
mov eax, dword [ebp - 0x74]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
add eax, 0xc
push eax
call fcn.004034e7
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x78]
add eax, 8
mov ecx, dword [ebp - 0x74]
push ecx
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
mov eax, dword [ebp + 8]
add eax, 0x2c
mov ecx, dword [ebp + 8]
add ecx, 0x30
mov edx, dword [ebp - 0x78]
push edx
push ecx
push eax
call fcn.00403586
add esp, 0xc
mov eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x60]
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jge 0x421155
jmp 0x4210ba
mov eax, dword [ebp - 0x44]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x5c]
mov ecx, eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
jmp 0x42108f
mov eax, dword [ebp - 0x5c]
add eax, 0xc
movzx ecx, byte [eax]
sar ecx, 4
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
cmp eax, 0
jne 0x4210da
jmp 0x4210a2
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [eax]
add ecx, edx
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp + 8]
add eax, 0x58
mov ecx, dword [ebp - 0x5c]
add ecx, 4
mov edx, dword [ebp - 0x5c]
add edx, 8
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x5c]
add eax, 0xc
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x5c]
add ecx, 0xd
mov dword [ebp - 0x84], edx
mov edx, dword [ebp - 0x5c]
add edx, 0xe
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x70]
push eax
movzx eax, word [edx]
push eax
movzx eax, byte [ecx]
push eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
push eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
push eax
call fcn.0041c2a8
add esp, 0x1c
jmp 0x4210a2
mov eax, 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
jge 0x421267
jmp 0x42118e
mov eax, dword [ebp - 0x44]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
mov ecx, eax
add eax, 8
mov dword [ebp - 0x64], eax
jmp 0x421163
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
jmp 0x42119d
cmp ecx, 1
jne 0x421262
mov eax, dword [ebp - 0x64]
add eax, 4
mov ecx, dword [ebp - 0x6c]
mov edx, dword [eax]
add ecx, edx
mov dword [ebp - 0x70], ecx
mov eax, 0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
add eax, 0x30
mov ecx, dword [ebp - 0x48]
mov edx, dword [eax]
cmp ecx, edx
jge 0x42121f
jmp 0x4211e3
mov eax, dword [ebp - 0x48]
mov ecx, eax
add eax, 1
mov dword [ebp - 0x48], eax
jmp 0x4211be
mov eax, dword [ebp + 8]
add eax, 0x2c
mov ecx, dword [ebp - 0x48]
shl ecx, 2
mov edx, dword [eax]
add edx, ecx
mov eax, dword [edx]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
add eax, 8
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x421218
jmp 0x42121d
jmp 0x42125d
jmp 0x4211d6
mov eax, 2
push eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042519c
add esp, 0xc
cmp eax, 0
jge 0x42125d
mov eax, dword [ebp - 0x70]
push eax
mov eax, str.referenced_dll__s_not_found
push eax
call fcn.00404020
add esp, 8
mov eax, 0xffffffff
mov dword [ebp - 0x58], eax
jmp 0x42126f
jmp 0x421262
jmp 0x421176
mov eax, 0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00403483
add esp, 4
mov eax, dword [ebp - 0x60]
push eax
call fcn.00403483
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
call fcn.00403483
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call fcn.00403483
add esp, 4
mov eax, dword [ebp - 0x58]
jmp 0x4212a7
leave
ret