Function at 0x468b24
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4691f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x4691d2
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 2
mov eax, dword [ebp - 4]
call fcn.00467ee8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00467fd0
test al, al
je 0x4691d9
mov eax, 0x8000
call fcn.0040271c
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x4691c8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x31e], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0x13
jbe 0x4690e0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.004610e0
push 0
lea eax, [ebp - 0x28]
push eax
push 0x7fff
mov ebx, dword [ebp - 0x14]
push ebx
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_ReadFile_1
mov edi, ebx
cmp word [edi], 0x5a4d
jne 0x468f25
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 3
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0046859c
test al, al
je 0x468c10
call fcn.004036a8
jmp 0x4691d9
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.00403f7c
push eax
call sub.KERNEL32.DLL_LoadLibraryExA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x468dab
mov eax, 0xc
call fcn.0040271c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x468da4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 1
push 6
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_LoadStringA
mov eax, dword [ebp - 0x18]
call fcn.00409720
test eax, eax
jbe 0x468d85
xor eax, eax
push ebp
push 0x468cb3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.00405274
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
cmp dword [ebp - 0x24], 0
je 0x468ca9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468d85
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468cc7
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x40]
jae 0x468d85
mov edx, ebx
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
call fcn.004610e0
test al, al
je 0x468d78
xor eax, eax
push ebp
push 0x468d6e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x28]
push eax
push 4
mov ebx, dword [ebp - 0x14]
push ebx
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_ReadFile_1
mov edi, ebx
cmp dword [ebp - 0x28], 4
jne 0x468d2e
mov eax, dword [edi]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00468048
mov edx, dword [ebp - 4]
mov byte [edx + 0x3c], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 3
je 0x468d64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x31e], 0x10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004036a8
call fcn.004036a8
jmp 0x4691d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468d78
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 5
jne 0x468c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468dab
mov eax, dword [ebp - 0x18]
call fcn.00402734
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_FreeLibrary_1
ret
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 0x14]
mov ecx, 6
call fcn.00402840
movzx eax, word [ebp - 0xa]
dec eax
mov ebx, eax
shl ebx, 9
movzx eax, word [ebp - 0xc]
add ebx, eax
test ebx, ebx
jle 0x468eb9
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jae 0x468eb9
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.004610e0
test al, al
je 0x468ea8
push 0
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_ReadFile_1
cmp dword [ebp - 0x28], 4
jne 0x468eb9
cmp word [ebp - 6], 0xea60
sete al
and eax, 0x7f
mov esi, eax
add esi, esi
add esi, ebx
inc esi
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], esi
mov eax, esi
add eax, 4
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jae 0x468eb9
mov edx, esi
dec edx
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
call fcn.004610e0
test al, al
je 0x468e9e
push 0
lea eax, [ebp - 0x28]
push eax
push 4
mov ebx, dword [ebp - 0x14]
push ebx
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_ReadFile_1
mov edi, ebx
mov esi, dword [edi]
cmp esi, 0x4034b50
je 0x468eb9
cmp dword [ebp - 0x28], 4
jne 0x468eb9
push esi
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00468048
mov ebx, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], bl
mov eax, ebx
call fcn.00468b0c
test al, al
je 0x468eb9
call fcn.004036a8
jmp 0x4691d9
call fcn.004036a8
jmp 0x4691d9
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 2
call fcn.004036a8
jmp 0x4691d9
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xcc], edx
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c]
call fcn.00468b0c
test al, al
jne 0x468ef1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00467c04
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], ebx
test ebx, ebx
jbe 0x468ef1
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 0x1d
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c]
call fcn.00468b0c
test al, al
jne 0x4690e0
push 0x4268
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x3c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00468308
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
jmp 0x4690e0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x468f44
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x468f42
inc eax
cmp byte [esi], 0
jne 0x468f42
inc esi
dec eax
jne 0x468f39
mov edi, esi
mov eax, dword [edi]
push eax
mov cl, 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00468048
mov ebx, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], bl
sub bl, 0xf
je 0x468f6d
add bl, 0xf3
sub bl, 2
jb 0x468f6d
jne 0x468fca
jmp 0x468fea
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00467c04
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
test byte [eax + 0x31e], 0x10
jne 0x468fa6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
jne 0x468fa6
sub esi, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add dword [eax + 0x30], esi
mov eax, dword [ebp - 4]
or byte [eax + 0x31e], 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
cmp byte [eax + 0x7c], 2
jne 0x468fea
mov eax, dword [ebp - 4]
test byte [eax + 0x31e], 1
jne 0x468fea
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 0x1e
jmp 0x468fea
mov edx, 0x469204
mov eax, dword [ebp - 0x14]
add eax, 7
mov ecx, 7
call fcn.0040984c
test eax, eax
jne 0x468fea
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 4
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c]
call fcn.00468b0c
test al, al
jne 0x4690e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
cmp byte [eax + 0x7c], 2
jne 0x469047
cmp dword [eax + 0x88], 0
jle 0x469047
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00467c04
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x31e]
test al, al
je 0x46903b
cmp al, 0x10
jae 0x4690e0
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 0x1e
jmp 0x4690e0
mov edx, 0x469204
mov eax, dword [ebp - 0x14]
add eax, 7
mov ecx, 7
call fcn.0040984c
test eax, eax
jne 0x469069
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 4
jmp 0x4690e0
push ebp
mov eax, dword [ebp - 0x2c]
call fcn.004689a8
pop ecx
test al, al
jne 0x4690e0
push ebp
mov eax, dword [ebp - 0x2c]
call fcn.0046883c
pop ecx
test al, al
jne 0x4690e0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00467c04
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x31e]
test al, 0x10
jbe 0x4690b2
test al, 1
jbe 0x4690b2
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 0x1c
jmp 0x4690e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
cmp byte [eax + 0x7c], 2
jne 0x4690e0
mov eax, dword [ebp - 4]
test byte [eax + 0x31e], 0x10
jne 0x4690e0
mov eax, dword [ebp - 4]
test byte [eax + 0x31e], 1
jbe 0x4690e0
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 0x1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4691d9
mov eax, dword [ebp - 0x14]
call fcn.00402734
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c]
call fcn.00468b0c
test al, al
je 0x4691b4
xor eax, eax
push ebp
push 0x46919e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46918d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0x1c
jne 0x469160
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0040950c
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00408a90
mov eax, dword [ebp - 0x30]
mov edx, dword [0x48271c]
mov edx, dword [edx + 0x44]
call fcn.00403ec8
jne 0x469160
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 0xf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469194
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.00461134
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], ebx
inc ebx
jne 0x46918c
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0x7225
ret
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0x7225
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4691fb
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00403b5c
ret