Function at 0x4380c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push 0x82
push str.ioinit.c
push 2
push 0x480
call fcn.00431510
add esp, 0x10
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x4380f0
or eax, 0xffffffff
jmp 0x438441
mov eax, dword [ebp - 0x64]
mov dword [0x45b520], eax
mov dword [0x45b504], 0x20
jmp 0x43810d
mov ecx, dword [ebp - 0x64]
add ecx, 0x24
mov dword [ebp - 0x64], ecx
mov edx, dword [0x45b520]
add edx, 0x480
cmp dword [ebp - 0x64], edx
jae 0x438141
mov eax, dword [ebp - 0x64]
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0x64]
mov dword [ecx], 0xffffffff
mov edx, dword [ebp - 0x64]
mov byte [edx + 5], 0xa
mov eax, dword [ebp - 0x64]
mov dword [eax + 8], 0
jmp 0x438104
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
movzx edx, word [ebp - 0x16]
test edx, edx
je 0x43830f
cmp dword [ebp - 0x14], 0
je 0x43830f
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x58], 0x800
jge 0x43818c
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x6c], ecx
jmp 0x438193
mov dword [ebp - 0x6c], 0x800
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x4c], 1
jmp 0x4381ab
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x45b504]
cmp ecx, dword [ebp - 0x58]
jge 0x43824b
push 0xb7
push str.ioinit.c
push 2
push 0x480
call fcn.00431510
add esp, 0x10
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x4381e7
mov edx, dword [0x45b504]
mov dword [ebp - 0x58], edx
jmp 0x43824b
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
mov dword [eax*4 + 0x45b520], ecx
mov edx, dword [0x45b504]
add edx, 0x20
mov dword [0x45b504], edx
jmp 0x43820e
mov eax, dword [ebp - 0x64]
add eax, 0x24
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx*4 + 0x45b520]
add edx, 0x480
cmp dword [ebp - 0x64], edx
jae 0x438246
mov eax, dword [ebp - 0x64]
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0x64]
mov dword [ecx], 0xffffffff
mov edx, dword [ebp - 0x64]
mov byte [edx + 5], 0xa
mov eax, dword [ebp - 0x64]
mov dword [eax + 8], 0
jmp 0x438205
jmp 0x4381a2
mov dword [ebp - 0x54], 0
jmp 0x43826f
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x5c]
add edx, 1
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x68]
add eax, 4
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x58]
jge 0x43830f
mov edx, dword [ebp - 0x68]
cmp dword [edx], 0xffffffff
je 0x43830a
mov eax, dword [ebp - 0x5c]
movsx ecx, byte [eax]
and ecx, 1
je 0x43830a
mov edx, dword [ebp - 0x5c]
movsx eax, byte [edx]
and eax, 8
jne 0x4382ad
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
push edx
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x43830a
mov eax, dword [ebp - 0x54]
sar eax, 5
mov ecx, dword [ebp - 0x54]
and ecx, 0x1f
imul ecx, ecx, 0x24
add ecx, dword [eax*4 + 0x45b520]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
mov cl, byte [eax]
mov byte [edx + 4], cl
push 0xfa0
mov edx, dword [ebp - 0x64]
add edx, 0xc
push edx
call fcn.0043bf90
add esp, 8
test eax, eax
jne 0x4382fb
or eax, 0xffffffff
jmp 0x438441
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp - 0x64]
mov dword [edx + 8], ecx
jmp 0x438254
mov dword [ebp - 0x54], 0
jmp 0x438321
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 3
jge 0x438433
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x24
add ecx, dword [0x45b520]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0xffffffff
jne 0x43841b
mov eax, dword [ebp - 0x64]
mov byte [eax + 4], 0x81
cmp dword [ebp - 0x54], 0
jne 0x43835c
mov dword [ebp - 0x70], 0xfffffff6
jmp 0x43836c
mov ecx, dword [ebp - 0x54]
sub ecx, 1
neg ecx
sbb ecx, ecx
add ecx, 0xfffffff5
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0xffffffff
je 0x438409
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x438409
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov eax, dword [ebp - 0x50]
and eax, 0xff
cmp eax, 2
jne 0x4383bd
mov ecx, dword [ebp - 0x64]
movsx edx, byte [ecx + 4]
or edx, 0x40
mov eax, dword [ebp - 0x64]
mov byte [eax + 4], dl
jmp 0x4383db
mov ecx, dword [ebp - 0x50]
and ecx, 0xff
cmp ecx, 3
jne 0x4383db
mov edx, dword [ebp - 0x64]
movsx eax, byte [edx + 4]
or eax, 8
mov ecx, dword [ebp - 0x64]
mov byte [ecx + 4], al
push 0xfa0
mov edx, dword [ebp - 0x64]
add edx, 0xc
push edx
call fcn.0043bf90
add esp, 8
test eax, eax
jne 0x4383f8
or eax, 0xffffffff
jmp 0x438441
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp - 0x64]
mov dword [edx + 8], ecx
jmp 0x438419
mov eax, dword [ebp - 0x64]
movsx ecx, byte [eax + 4]
or ecx, 0x40
mov edx, dword [ebp - 0x64]
mov byte [edx + 4], cl
jmp 0x43842e
mov eax, dword [ebp - 0x64]
movsx ecx, byte [eax + 4]
or ecx, 0x80
mov edx, dword [ebp - 0x64]
mov byte [edx + 4], cl
jmp 0x438318
mov eax, dword [0x45b504]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
mov esp, ebp
pop ebp
ret