Function at 0x4363b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x3a4]
push esi
lea esi, [ecx + 0x3a4]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [eax - 0xc]
sub ecx, 5
push ecx
lea edx, [ebp - 0xc4]
push edx
mov ecx, esi
call fcn.0040f090
push 0x457c5c
push 0x457c5c
lea ecx, [ebp - 0xc4]
call fcn.00434da0
mov ecx, eax
call fcn.00434bb0
push eax
mov ecx, esi
call fcn.00409e00
mov eax, dword [ebp - 0xc4]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x436469
mov eax, dword [ebp - 0xc4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4367de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438fc8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc4]
push ebx
push edi
push ecx
call fcn.0040e160
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.00439a65
push ebx
push 0
push eax
mov dword [ebp - 0xcc], eax
call fcn.004391a0
mov ebx, dword [ebp - 0xcc]
add esp, 0x14
push 0
lea edx, [ebp - 0xe4]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x466c18]
mov edx, dword [eax + 0xc]
mov ecx, 0x466c18
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0xc0], edi
test ebx, ebx
je 0x4364f8
test ebx, 0xffff0000
jne 0x4364f8
movzx esi, bx
push 0
push esi
call fcn.004099e0
add esp, 8
test eax, eax
je 0x43650a
push esi
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040a140
jmp 0x436504
push ebx
lea ecx, [ebp - 0xc0]
call fcn.0040b210
mov edi, dword [ebp - 0xc0]
lea ecx, [ebp - 0xd0]
call fcn.004117b0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00411a00
push 0
lea ecx, [ebp - 0xe0]
call fcn.0040f5e0
mov ecx, 1
sub ecx, dword [edi - 4]
or ecx, dword [edi - 8]
jge 0x436554
push 0
lea ecx, [ebp - 0xc0]
call fcn.00409fa0
mov edi, dword [ebp - 0xc0]
xor edx, edx
mov eax, edi
mov word [ebp - 0x3c], dx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436570
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.00404dc0
push 1
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0040ec10
add esp, 8
push eax
lea ecx, [ebp - 0xbc]
call fcn.00411b10
test al, al
sete bl
cmp dword [ebp - 0xc], 0x10
jb 0x4365c5
mov eax, dword [ebp - 0x20]
push eax
call fcn.00438e41
add esp, 4
mov esi, 8
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
cmp dword [ebp - 0x28], esi
jb 0x4365ed
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00438e41
add esp, 4
test bl, bl
je 0x43662b
mov edx, dword [ebp - 0xcc]
push edx
call fcn.00439225
add esp, 4
lea ecx, [ebp - 0xe0]
call fcn.0040f870
lea ecx, [ebp - 0xbc]
call fcn.0040b070
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4367ae
lea ecx, [ebp - 0x3c]
push ecx
push 0x457c58
lea ecx, [ebp - 0xe0]
call fcn.0040fdf0
mov ecx, eax
call fcn.0040f990
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.0040ecf0
add esp, 8
cmp dword [eax + 0x14], esi
jb 0x43665c
mov edx, dword [eax]
jmp 0x43665e
mov edx, eax
mov esi, dword [ebp - 0xc8]
add esi, 0x3a8
test edx, edx
jne 0x436672
xor eax, eax
jmp 0x436686
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436677
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00409ef0
cmp dword [ebp - 0xc], 8
jb 0x4366a1
mov eax, dword [ebp - 0x20]
push eax
call fcn.00438e41
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], cx
jb 0x4366c7
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00438e41
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0043ae50
add esp, 8
test eax, eax
jne 0x4366e0
or eax, 0xffffffff
jmp 0x4366e4
sub eax, dword [esi]
sar eax, 1
sub edi, eax
dec edi
push edi
lea eax, [ebp - 0xc8]
push eax
mov ecx, esi
call fcn.0040f090
push eax
mov ecx, esi
call fcn.00409e00
mov eax, dword [ebp - 0xc8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436720
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push 0x2e
push eax
call fcn.0043ae50
add esp, 8
test eax, eax
jne 0x436736
or eax, 0xffffffff
jmp 0x43673a
sub eax, dword [esi]
sar eax, 1
push eax
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, esi
call fcn.0040f120
push eax
mov ecx, esi
call fcn.00409e00
mov eax, dword [ebp - 0xc8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.00439225
add esp, 4
lea ecx, [ebp - 0xe0]
call fcn.0040f870
lea ecx, [ebp - 0xbc]
call fcn.0040b070
mov eax, dword [ebp - 0xc0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4367ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4367dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00438fc8
mov esp, ebp
pop ebp
ret