Function at 0x430f40
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4787bb
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x4eec64]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0x334]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x344]
mov edi, ecx
mov eax, dword [edi + 0x59c]
xor ebx, ebx
cmp eax, ebx
je 0x430f99
push eax
call fcn.0045de2d
add esp, 4
mov dword [edi + 0x59c], ebx
mov eax, dword [edi + 0x18c]
cmp eax, ebx
je 0x430fc9
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0042fbd0
push ecx
push 0x168
push eax
call fcn.0045c6d8
push esi
call fcn.0045c158
add esp, 4
and dword [edi + 0x190], 1
xor esi, esi
mov dword [edi + 0x18c], ebx
mov dword [esp + 0x18], esi
cmp ebp, ebx
je 0x430ffd
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430fe5
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.004017a0
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
lea ecx, [edi + 0x5a0]
mov dword [esp + 0x340], ebx
call fcn.00401190
mov dword [esp + 0x33c], 0xffffffff
cmp esi, ebx
je 0x43104a
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x43103d
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, ebx
jne 0x43104a
push esi
call fcn.00402770
add esp, 4
push 0x48d8e8
push ebp
call fcn.0045dc90
add esp, 8
mov dword [edi + 0x59c], eax
cmp eax, ebx
je 0x431072
push 0x8000
push ebx
push ebx
push eax
call fcn.0045dace
add esp, 0x10
mov esi, dword [edi + 0x59c]
cmp esi, ebx
jne 0x431083
mov eax, 2
jmp 0x4310b4
push esi
push 1
lea eax, [esp + 0x1f]
push 1
push eax
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov al, byte [esp + 0x17]
cmp al, 0x38
je 0x4310de
movsx ecx, al
push esi
push ecx
call fcn.0045fbd6
add esp, 8
mov eax, 3
mov ecx, dword [esp + 0x334]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.0045c0ce
add esp, 0x32c
ret 4
mov esi, dword [edi + 0x59c]
push esi
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov al, byte [esp + 0x17]
cmp al, 0x42
je 0x43110a
movsx eax, al
push esi
push eax
jmp 0x4310a7
mov esi, dword [edi + 0x59c]
push 0x50
call fcn.00431650
add esp, 4
test al, al
je 0x4310af
mov esi, dword [edi + 0x59c]
push 0x53
call fcn.00431650
add esp, 4
test al, al
je 0x4310af
mov eax, dword [edi + 0x59c]
push eax
push 1
push 2
push edi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov cx, word [edi]
rol cx, 8
movzx eax, cx
mov word [edi], ax
cmp ax, 1
jne 0x4310af
mov eax, dword [edi + 0x59c]
push eax
push 6
lea edx, [esp + 0x2c]
push 1
push edx
call fcn.0045e149
add esp, 0x10
cmp eax, 6
jne 0x4310af
mov eax, dword [edi + 0x59c]
push eax
push 1
lea esi, [edi + 2]
push 2
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov ax, word [esi]
rol ax, 8
mov word [esi], ax
mov eax, dword [edi + 0x59c]
push eax
push 1
lea esi, [edi + 4]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov ecx, esi
call fcn.00431600
cmp eax, ebx
jne 0x4310b4
mov eax, dword [edi + 0x59c]
push eax
push 1
lea esi, [edi + 8]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov ecx, esi
call fcn.00431600
cmp eax, ebx
jne 0x4310b4
mov eax, dword [edi + 0x59c]
push eax
push 1
lea ecx, [esp + 0x24]
push 2
push ecx
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov dx, word [esp + 0x1c]
rol dx, 8
movzx eax, dx
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x59c]
push eax
push 1
lea esi, [edi + 0xe]
push 2
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov cx, word [esi]
rol cx, 8
movzx eax, cx
mov word [esi], cx
cmp ax, 3
je 0x431281
cmp ax, 2
jne 0x4310af
mov eax, dword [edi + 0x59c]
push eax
push 1
lea esi, [edi + 0x10]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov ecx, esi
call fcn.00431600
cmp eax, ebx
jne 0x4310b4
mov esi, dword [esi]
cmp esi, ebx
je 0x431323
cmp esi, 0x300
jne 0x4310af
mov edx, dword [edi + 0x59c]
push edx
push 1
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0045e149
push pe_nt_image_headers32
lea ecx, [edi + 0x194]
push 0xff000000
push ecx
call fcn.0040f020
add esp, 0x1c
xor eax, eax
mov esi, eax
shr esi, 8
mov ecx, 2
sub ecx, esi
movzx esi, byte [esp + eax + 0x2c]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, eax
shl esi, cl
and edx, 0xff
lea edx, [edi + edx*4 + 0x194]
inc eax
or dword [edx], esi
cmp eax, 0x300
jb 0x4312f1
mov eax, dword [edi + 0x59c]
push eax
push 1
lea esi, [edi + 0x20]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov ecx, esi
call fcn.00431600
cmp eax, ebx
jne 0x4310b4
mov eax, dword [edi + 0x59c]
push eax
call fcn.0045fa77
mov ebp, eax
mov eax, dword [edi + 0x59c]
add esp, 4
push eax
call fcn.0045fa77
mov ecx, dword [esi]
add ecx, ebp
add esp, 4
cmp eax, ecx
jge 0x4313a2
lea ebx, [ebx]
mov ecx, edi
call fcn.0042fdc0
test eax, eax
jne 0x4313a2
mov eax, dword [edi + 0x59c]
push eax
call fcn.0045fa77
mov edx, dword [esi]
add edx, ebp
add esp, 4
cmp eax, edx
jl 0x431380
mov eax, dword [edi + 0x59c]
push eax
call fcn.0045fa77
mov ecx, dword [esi]
add ecx, ebp
add esp, 4
cmp eax, ecx
jne 0x4310af
mov eax, dword [edi + 0x59c]
push eax
push 1
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov ecx, esi
call fcn.00431600
cmp eax, ebx
jne 0x4310b4
cmp dword [esi], ebx
je 0x43150f
mov eax, dword [edi + 0x59c]
push eax
call fcn.0045fa77
add eax, dword [esi]
add esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x59c]
push eax
push 1
lea esi, [edi + 0x18]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4310b4
mov eax, dword [edi + 0x59c]
push eax
push 1
lea esi, [edi + 0x1c]
push 2
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4310af
mov dx, word [esi]
rol dx, 8
movsx eax, dx
mov word [esi], dx
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
push ebp
lea esi, [edi + 0x18c]
call fcn.004317f0
xor ebx, ebx
test ebp, ebp
jle 0x4314a2
xor esi, esi
lea ecx, [ecx]
mov eax, dword [edi + 0x18c]
add eax, esi
push eax
push edi
call fcn.0042ff90
test eax, eax
jne 0x4310b4
inc ebx
add esi, 0x168
cmp ebx, ebp
jl 0x431480
mov dword [esp + 0x18], 0
test ebp, ebp
jle 0x4314d9
xor ebx, ebx
mov esi, dword [edi + 0x18c]
add esi, ebx
push edi
call fcn.00430700
test eax, eax
jne 0x4310b4
mov eax, dword [esp + 0x18]
inc eax
add ebx, 0x168
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x4314b0
mov eax, dword [edi + 0x59c]
push eax
call fcn.0045fa77
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, ecx
je 0x431502
mov eax, dword [edi + 0x59c]
push 0
push ecx
push eax
call fcn.0045dd31
add esp, 0xc
movsx eax, word [edi + 0x1c]
cdq
xor eax, edx
sub eax, edx
mov word [edi + 0x1c], ax
mov ax, word [edi + 2]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
lea esi, [edi + 2]
mov word [edi + 0x34], ax
mov eax, dword [edi + 0x59c]
xor ebx, ebx
push eax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x2c], edx
call fcn.0045fa77
xor ecx, ecx
add esp, 4
mov dword [edi + 0x188], eax
mov dword [esp + 0x18], ebx
cmp cx, word [esi]
jae 0x43156a
add edi, 0x38
lea edx, [esp + 0x18]
push edx
call fcn.0042f480
movzx eax, word [esi]
inc ebx
movsx ecx, bx
cmp ecx, eax
mov dword [esp + 0x18], ebx
jl 0x431551
xor eax, eax
jmp 0x4310b4