Function at 0x30010ebb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
jle 0x30011519
cmp dword [0x300285d0], edi
je 0x30010ef9
mov dword [ebx + 0x20], 1
mov ecx, dword [ebx + 0x38]
cmp ecx, edi
jne 0x30010f05
cmp dword [ebx + 0x34], edi
je 0x30010f1e
cmp dword [ebx + 0x1c], edi
jne 0x30011519
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x30010f1e
cmp word [eax], di
jne 0x30011519
cmp ecx, edi
je 0x30010f63
mov eax, dword [ebx]
cmp eax, edi
je 0x30010f31
cmp byte [eax], 0
jne 0x30011519
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x30010f41
cmp byte [eax], 0
jne 0x30011519
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x30010f51
cmp word [eax], di
jne 0x30011519
cmp dword [ebx + 0x20], edi
jne 0x30011519
cmp dword [ebx + 0x24], edi
jne 0x30011519
mov ecx, dword [ebx]
cmp ecx, edi
je 0x30010fde
cmp byte [ecx], 0
je 0x30010fde
mov al, byte [ecx]
test al, al
je 0x30010fa7
mov esi, ecx
cmp al, 0x3b
je 0x30010f82
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x30010f76
cmp byte [esi], 0
jne 0x30010f95
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.3001033b
mov ecx, esi
jmp 0x30010f6e
and byte [esi], 0
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.3001033b
lea ecx, [esi + 1]
jmp 0x30010f6e
push dword [ebp - 0x10]
call fcn.3001026f
cmp eax, edi
mov dword [ebp - 8], eax
jle 0x30010fde
inc dword [ebp - 8]
push 0x106
push dword [ebp - 8]
call fcn.3001e0d5
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x30010fdb
push dword [ebp - 8]
push eax
push dword [ebp - 0x10]
call fcn.300102af
jmp 0x30010fde
mov dword [ebp - 8], edi
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x30010ff4
cmp byte [eax], 0
je 0x30010ff4
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.3000fd06
cmp dword [ebx + 0x1c], edi
je 0x30011009
cmp dword [0x300285dc], edi
jne 0x30011009
mov eax, dword [0x30025900]
mov dword [ebp - 0x14], eax
lea edi, [ebx + 8]
push edi
call fcn.30010dbd
lea esi, [ebx + 0xc]
push esi
call fcn.30010dbd
cmp dword [ebp - 0x14], 0
je 0x3001102d
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp word [ecx], ax
ja 0x3001104b
jmp 0x3001102f
xor eax, eax
cmp dword [ebp - 8], eax
jg 0x3001104b
cmp dword [ebp - 0xc], eax
jne 0x3001104b
cmp dword [ebx + 0x20], eax
jne 0x3001104b
cmp dword [ebx + 0x24], eax
jne 0x3001104b
cmp dword [edi], eax
jne 0x3001104b
cmp dword [esi], eax
je 0x300110a8
mov eax, dword [ebx + 0x24]
push dword [ebp - 0x14]
or eax, dword [ebx + 0x20]
push eax
lea eax, [ebx + 0x2c]
push eax
push dword [esi]
push dword [edi]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.30010770
test eax, eax
je 0x3001145b
cmp dword [0x30028378], 0
jne 0x300110a8
push ebx
push 0x30008f05
push dword [0x300270e0]
push 0x6d
push dword [0x300283b4]
call fcn.300079b5
test eax, eax
jne 0x300110a8
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 1
jmp 0x3001145b
push 1
pop edi
mov dword [ebp - 4], edi
mov dword [ebx + 0x30], edi
call fcn.30014525
test eax, eax
je 0x30011519
xor esi, esi
cmp dword [ebx + 0x20], esi
je 0x300110f3
cmp dword [0x300285dc], esi
jne 0x300110f3
mov eax, dword [0x300252d0]
cmp eax, esi
jne 0x300110de
mov dword [ebp - 4], esi
jmp 0x30011435
push dword [0x300252d4]
push eax
push 0x30010e7a
call fcn.300145ef
test eax, eax
je 0x300110d6
cmp dword [ebx + 0x24], esi
je 0x30011136
cmp dword [0x300285dc], esi
jne 0x30011136
cmp dword [0x300283c0], esi
jne 0x30011136
push edi
push 0x300252d8
push 0x300254f0
call fcn.3000c8c4
mov eax, dword [0x300252e0]
cmp eax, esi
je 0x300110d6
push dword [0x300252e4]
push eax
push 0x30010e86
call fcn.300145ef
test eax, eax
je 0x300110d6
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x24], esi
cmp word [eax], si
jbe 0x300111d8
mov dword [ebp + 8], esi
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 8]
push eax
call fcn.3001f574
mov esi, eax
lea eax, [ebp + 0xc]
inc esi
push esi
push eax
call fcn.3001e320
test eax, eax
je 0x30011335
mov eax, dword [ebx + 0x28]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov eax, dword [eax + 0xc]
lea esi, [eax + edx + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
call fcn.3000d73f
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
add eax, ecx
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0xc]
call fcn.300145ef
test eax, eax
je 0x3001133e
push dword [ebp + 0xc]
call fcn.3001e422
mov eax, dword [ebx + 0x28]
inc dword [ebp - 0x24]
add dword [ebp + 8], 0x10c
movzx ecx, word [eax]
cmp dword [ebp - 0x24], ecx
jl 0x30011148
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
call fcn.30010ce8
test eax, eax
je 0x30011204
push dword [ebp - 0x1c]
call fcn.3001f574
inc eax
push eax
push dword [ebp - 0x1c]
push 0x30010e9a
call fcn.300145ef
test eax, eax
je 0x300110d6
cmp dword [ebp - 0x10], esi
je 0x30011214
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.3001053d
cmp dword [ebp - 0x14], esi
je 0x3001122a
cmp dword [ebx + 0x1c], esi
je 0x3001122a
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call fcn.30010563
cmp dword [ebp - 0xc], esi
je 0x30011237
push dword [ebp - 0xc]
call fcn.30010688
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x3001135a
push 0x3b
push eax
call fcn.3000b2db
mov dword [ebp + 0xc], eax
and byte [ebp + 0xb], 0
push esi
push 0x8000000
push 3
push esi
push 3
push SysReAllocString
push eax
call fcn.3000df30
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x300112ec
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 0x24], eax
je 0x300112dd
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x300112d4
push 0x30010ea6
push dword [ebp + 0xc]
call fcn.3000d7aa
push esi
mov dword [ebp + 8], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push edi
push dword [ebp + 8]
call fcn.300145ef
test eax, eax
je 0x3001134f
push dword [ebp + 8]
call fcn.3001e106
push edi
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp + 0xb], 0
jne 0x30011321
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x30010eaa
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call fcn.3000d7aa
mov edi, eax
lea eax, [ebp - 8]
push 4
push eax
push edi
mov byte [edi], 0x21
call fcn.300145ef
test eax, eax
je 0x3001142c
push edi
call fcn.3001e106
push 0x3b
push esi
call fcn.3000b2db
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x3001135a
jmp 0x3001124d
and dword [ebp - 4], 0
jmp 0x30011435
push dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.3001e422
jmp 0x30011435
push dword [ebp + 8]
mov dword [ebp - 4], esi
jmp 0x30011430
mov eax, dword [ebx + 0xc]
cmp eax, esi
je 0x30011435
push 0x3b
push eax
call fcn.3000b2db
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.3000e078
cmp eax, esi
mov dword [ebp + 0xc], eax
jle 0x300113de
push 0x106
push eax
call fcn.3001e0d5
mov esi, eax
test esi, esi
je 0x300113a9
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.3000e0f1
push 0x30010eae
push dword [ebp + 8]
call fcn.3000d7aa
push dword [ebp + 0xc]
mov edi, eax
push esi
push edi
call fcn.300145ef
test eax, eax
je 0x30011426
push edi
call fcn.3001e106
push esi
jmp 0x3001140a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x30010eb6
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call fcn.3000d7aa
mov edi, eax
lea eax, [ebp - 0x14]
push 4
push eax
push edi
mov byte [edi], 0x21
call fcn.300145ef
test eax, eax
je 0x3001142c
push edi
call fcn.3001e106
push 0x3b
push 0
call fcn.3000b2db
test eax, eax
mov dword [ebp + 8], eax
je 0x30011435
xor esi, esi
jmp 0x30011370
and dword [ebp - 4], 0
jmp 0x3001142f
mov dword [ebp - 4], esi
push edi
call fcn.3001e106
lea edi, [ebx + 0x14]
add ebx, 0x18
push edi
push ebx
call fcn.300146c9
test eax, eax
jne 0x3001145b
mov eax, dword [ebx]
xor esi, esi
cmp eax, esi
mov dword [edi], esi
je 0x30011458
push eax
call fcn.3001e106
mov dword [ebx], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x30011488
xor esi, esi
cmp word [eax], bx
jbe 0x30011482
mov eax, dword [eax + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.OLEAUT32.DLL_SysStringLen]
mov eax, dword [ebp - 0xc]
inc esi
movzx ecx, word [eax]
cmp esi, ecx
jl 0x3001146b
push eax
call fcn.30021077
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x300114cb
xor edi, edi
cmp word [eax], bx
jbe 0x300114b1
xor esi, esi
mov eax, dword [eax + 0xc]
add eax, esi
push eax
call fcn.3000c4a8
mov eax, dword [ebp - 0x20]
inc edi
add esi, 0x10
movzx ecx, word [eax]
cmp edi, ecx
jl 0x30011498
push eax
call fcn.300213bf
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
mov esi, ecx
je 0x300114cb
call fcn.3000f8ce
push esi
call fcn.3001e106
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x300114fa
xor esi, esi
cmp word [eax], bx
jbe 0x300114f4
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + esi*4]
cmp ecx, ebx
je 0x300114ec
push ecx
call fcn.3001e106
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
inc esi
cmp esi, ecx
jl 0x300114d9
push eax
call fcn.30021077
cmp dword [ebp - 0x18], ebx
je 0x30011507
push dword [ebp - 0x18]
call fcn.3001e106
cmp dword [ebp - 0x1c], ebx
je 0x30011514
push dword [ebp - 0x1c]
call fcn.3001e106
mov eax, dword [ebp - 4]
jmp 0x3001151b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8