Function at 0x10095f00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x10106010]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push edi
push 8
push eax
mov edi, ecx
push 0
mov dword [ebp - 0x1ac], edi
call fcn.10095a10
test al, al
je 0x100964ad
lea eax, [ebp - 0x24]
cmp dword [eax], 0x72613c21
jne 0x100964ad
cmp dword [eax + 4], 0xa3e6863
jne 0x100964ad
test dword [edi + 0x20], 0x800000
mov ebx, 8
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x188], 0
je 0x10095f91
push 0
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1a4], eax
jmp 0x10095fad
push dword [edi + 0xc]
call fcn.100b52e6
mov dword [ebp - 0x1a4], eax
add esp, 4
and eax, edx
cmp eax, 0xffffffff
je 0x100964ad
lea eax, [ebp - 0x184]
mov dword [ebp - fcn.10020940], 0x1000d0c8
push eax
push esi
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x180], 0
call fcn.100506a0
add esp, 8
mov dword [ebp - 0x1b0], eax
test eax, eax
jne 0x1009602e
push eax
push eax
push 0x8007000e
mov ecx, edi
call fcn.10094a90
xor bl, bl
mov esi, dword [ebp - 0x17c]
mov dword [ebp - fcn.10020940], 0x1000d0c8
test esi, esi
je 0x10096019
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
nop
push esi
mov esi, dword [esi]
call edi
test esi, esi
jne 0x10096010
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a539a
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x198], eax
jmp 0x10096046
mov esi, dword [ebp - 0x18c]
add ebx, dword [ebp - 0x190]
test bl, 1
je 0x10096052
inc ebx
cmp ebx, dword [ebp - 0x1a4]
jae 0x10096495
push 0x3c
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
push ebx
call fcn.10095a10
test al, al
je 0x10095ff3
mov esi, dword [ebp - 0x194]
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x44]
inc esi
push 0x10019528
push eax
mov dword [ebp - 0x194], esi
call fcn.10096760
add esp, 0xc
cmp eax, 1
jne 0x10095ff3
add ebx, 0x3c
mov dword [ebp - 0x1a8], ebx
cmp esi, eax
je 0x100960b0
cmp esi, 2
jne 0x100960dc
lea ecx, [ebp - 0x74]
mov edx, 0x1001952c
mov esi, 0xc
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100960d6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100960c0
jmp 0x10096040
mov esi, dword [ebp - 0x194]
cmp esi, 3
je 0x100960ea
cmp esi, 2
jne 0x10096357
lea ecx, [ebp - 0x74]
mov edx, 0x10019540
mov esi, 0xc
jmp 0x10096100
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10096357
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10096100
mov ecx, dword [edi + 0x80]
mov eax, dword [ecx]
mov edx, dword [eax + 0x8c]
cmp eax, 0x10017bc8
jne 0x100964d6
mov ebx, dword [ecx + 0x158]
mov eax, dword [ebx]
mov edx, dword [eax + 0xc8]
cmp eax, 0x10017968
jne 0x100964c2
mov eax, dword [ebp + 0xc]
xor edx, edx
movzx eax, ax
div dword [ebx + 0x1b4]
mov eax, dword [ebx + 0x1b0]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x100961a0
mov edi, dword [eax + 4]
xor esi, esi
test edi, edi
je 0x100961a0
mov ecx, dword [eax]
mov dword [ebp - 0x19c], ecx
mov eax, dword [ecx + esi*8]
mov edx, dword [ecx + esi*8 + 4]
mov cl, 0x20
mov dword [ebp - 0x1a0], eax
call fcn.100ffae0
mov ecx, dword [ebx + 0x198]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*4], edx
je 0x100961b3
mov ecx, dword [ebp - 0x19c]
inc esi
cmp esi, edi
jb 0x10096173
mov esi, dword [ebp + 0xc]
xor al, al
mov ebx, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1ac]
jmp 0x100961ea
mov eax, dword [ebx + 0x1a4]
mov ecx, dword [ebp - 0x1a0]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1ac]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x188], eax
mov al, 1
jmp 0x100961ea
mov ebx, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1ac]
test al, al
je 0x10095ff3
cmp dword [ebp - 0x188], 0
jne 0x10096040
push dword [ebp - 0x190]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x188], eax
mov ecx, edi
test eax, eax
je 0x10096487
push dword [ebp - 0x190]
push eax
push ebx
call fcn.10095a10
test al, al
je 0x10095ff3
mov ecx, dword [edi + 0x80]
mov eax, dword [ecx]
mov edx, dword [eax + 0x94]
cmp eax, 0x10017bc8
jne 0x100964f8
mov edi, dword [ecx + 0x158]
mov eax, dword [edi]
mov edx, dword [eax + 0xd0]
cmp eax, 0x10017968
jne 0x100964e8
xor edx, edx
movzx eax, si
div dword [edi + 0x1b4]
mov eax, dword [edi + 0x1b0]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x1009631e
mov ebx, dword [eax + 4]
xor esi, esi
test ebx, ebx
je 0x1009631e
mov ecx, dword [eax]
mov dword [ebp - 0x1a0], ecx
mov eax, dword [ecx + esi*8]
mov edx, dword [ecx + esi*8 + 4]
mov cl, 0x20
mov dword [ebp - 0x19c], eax
call fcn.100ffae0
mov ecx, dword [edi + 0x198]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*4], edx
je 0x100962d2
mov ecx, dword [ebp - 0x1a0]
inc esi
cmp esi, ebx
jb 0x10096295
mov ebx, dword [ebp - 0x1a8]
xor al, al
mov edi, dword [ebp - 0x1ac]
jmp 0x1009634a
mov eax, dword [edi + 0x1a4]
lea ecx, [edi + 0x194]
mov edx, dword [ebp - 0x19c]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x188]
push edx
push dword [ebp + 0xc]
mov dword [edx + 0xc], eax
call fcn.100740e0
test eax, eax
jne 0x1009632e
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + 0x250]
test ecx, ecx
je 0x1009631e
push 0
push 0
push 0x8007000e
push dword [eax + 0x24c]
call ecx
add esp, 0x10
mov ebx, dword [ebp - 0x1a8]
xor al, al
mov edi, dword [ebp - 0x1ac]
jmp 0x1009634a
mov ebx, dword [ebp - 0x1a8]
mov al, 1
mov edi, dword [ebp - 0x1ac]
jmp 0x1009634a
mov ebx, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1ac]
test al, al
je 0x10095ff3
jmp 0x10096040
push 0xffffffffffffffff
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x1c]
push 0x11
push eax
call fcn.100b36b6
add esp, 0x10
cmp byte [ebp - 0x1c], 0x2f
jne 0x100963c3
mov al, byte [ebp - 0x1b]
cmp al, 0x20
je 0x100963b6
cmp al, 0x2f
je 0x100963b6
cmp dword [ebp - 0x188], 0
je 0x10095ff3
lea eax, [ebp - 0x1c]
push 0x20
push eax
call fcn.100a61d0
add esp, 8
test eax, eax
je 0x10095ff3
mov byte [eax], 0
lea eax, [ebp - 0x1b]
push eax
call fcn.100b249a
add esp, 4
add eax, dword [ebp - 0x188]
jmp 0x100963df
lea eax, [ebp - 0x1c]
push 0x20
push eax
call fcn.100a61d0
jmp 0x100963ce
lea eax, [ebp - 0x1c]
push 0x2f
push eax
call fcn.100abb80
add esp, 8
test eax, eax
je 0x10095ff3
mov byte [eax], 0
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1b0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10096405
test dl, dl
je 0x10096401
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10096405
add eax, 2
add ecx, 2
test dl, dl
jne 0x100963e5
xor eax, eax
jmp 0x1009640a
sbb eax, eax
or eax, 1
mov esi, dword [ebp - 0x18c]
test eax, eax
jne 0x1009646f
inc esi
mov dword [ebp - 0x18c], esi
cmp esi, 1
jne 0x10096426
mov dword [ebp - 0x198], ebx
push 0x14
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push ebx
call fcn.10095a10
test al, al
je 0x10095ff3
cmp word [ebp - 0x38], 0
jne 0x10096046
mov eax, 0xffff
cmp word [ebp - 0x36], ax
jne 0x10096046
cmp word [ebp - 0x34], 0
jne 0x10096046
or dword [edi + 0x20], 0x20000
mov bl, 1
jmp 0x10095ff5
test esi, esi
je 0x10096046
mov eax, dword [ebp - 0x198]
mov bl, 1
mov dword [edi + 0x18], eax
jmp 0x10095ff5
push 0
push 0
push 0x8007000e
jmp 0x10095fee
test esi, esi
je 0x10095ff3
mov eax, dword [ebp - 0x198]
mov bl, 1
mov dword [edi + 0x18], eax
jmp 0x10095ff5
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a539a
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x188]
push eax
push esi
mov ecx, ebx
call edx
jmp 0x100961de
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x188]
push eax
push esi
call edx
jmp 0x100961ea
push dword [ebp - 0x188]
mov ecx, edi
push esi
call edx
jmp 0x1009633e
push dword [ebp - 0x188]
push esi
call edx
jmp 0x1009634a