Function at 0x10006850
Capabilities:
Access peb ldr_data
Get file size
Get ntdll base address
Parse pe header
Read file on windows
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101ca348
push 0x10133130
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1a3c
call fcn.101389c0
mov eax, dword [0x101cc040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x368], ecx
xor edi, edi
mov dword [ebp - 0x3a8], edi
mov dword [ebp - 0x378], edi
mov dword [ebp - 0x370], edi
mov dword [ebp - 0x394], edi
mov dword [ebp - 0x364], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx], edi
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x28], edi
fld qword [0x10144210]
fstp qword [ecx + 0x30]
wait
mov dword [ebp - 4], edi
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x3a8], eax
cmp eax, edi
je 0x10006a4a
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x378], eax
test eax, eax
je 0x10006a4a
mov ecx, 0x5a4d
mov edx, eax
cmp word [edx], cx
jne 0x10006a4a
mov ecx, eax
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x36c], eax
push 4
push eax
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call esi
cmp eax, 1
je 0x10006a4a
mov eax, dword [ebp - 0x36c]
cmp dword [eax], 0x4550
jne 0x10006a4a
mov ecx, eax
cmp word [ecx + 6], di
je 0x10006a4a
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x10006985
mov dword [ebp - 0x380], edi
jmp 0x100069d1
mov edx, 0x20b
cmp ax, dx
jne 0x10006a4a
mov dword [ebp - 0x380], 1
mov eax, dword [ebp - 0x378]
mov edi, dword [eax + 0x3c]
add edi, eax
push 4
push edi
call esi
cmp eax, 1
je 0x10006a4a
cmp dword [edi], 0x4550
jne 0x10006a4a
mov eax, dword [ebp - 0x36c]
cmp word [eax + 6], 0
je 0x10006a4a
mov edx, eax
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 8]
mov dword [ecx + 0x28], eax
mov eax, 0x2000
test word [edx + 0x16], ax
je 0x100069f3
or dword [ecx], 2
jmp 0x10006a4a
or dword [ecx], 8
movzx eax, word [edx + 6]
mov dword [ebp - 0x384], eax
movzx eax, word [edx + 4]
mov edx, dword [ebp - 0x378]
mov esi, dword [edx + 0x3c]
lea esi, [esi + edx + 0xf8]
mov dword [ebp - 0x370], esi
mov ebx, dword [esi + 0x14]
mov dword [ecx + 4], ebx
cmp dword [ebp - 0x380], 1
jne 0x10006a79
test edi, edi
je 0x10006a79
mov eax, dword [edx + 0x3c]
lea eax, [eax + edx + 0x108]
mov dword [ebp - 0x370], eax
mov eax, dword [eax + 0x14]
mov dword [ecx + 4], eax
mov dword [ecx + 0x20], 2
wait
mov dword [ebp - 4], 0xfffffffe
call fcn.10007ac6
mov eax, dword [ebp - 0x364]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1012fc12
mov esp, ebp
pop ebp
ret
mov edx, 0x8664
cmp ax, dx
je 0x10006a43
mov edx, 0x200
cmp ax, dx
je 0x10006a43
mov eax, dword [ebp - 0x36c]
cmp word [eax + 0x5c], 1
je 0x10006a4a
mov ecx, eax
movzx edx, word [ecx + 6]
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x368]
cmp dword [eax + 0x38], 1
jne 0x100072a5
xor ebx, ebx
mov dword [ebp - 0x37c], ebx
xor eax, eax
fldz
mov dword [ebp - 0x37c], eax
cmp eax, 0x2bf
jae 0x10006ad9
fst qword [ebp + eax*8 - 0x1a54]
inc eax
jmp 0x10006ac2
mov eax, 1
fld qword [0x10144210]
mov dword [ebp - 0x37c], eax
cmp eax, 0xd2
ja 0x10006afb
fst qword [ebp + eax*8 - 0x1a54]
inc eax
jmp 0x10006ae4
fstp st(0)
movzx eax, word [ecx + 6]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x1a54]
movzx eax, byte [ecx + 0x1a]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x12f4]
movzx eax, byte [ecx + 0x1b]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x12ec]
mov eax, dword [ecx + 0x1c]
fild dword [ecx + 0x1c]
test eax, eax
jge 0x10006b4f
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12e4]
mov eax, dword [ecx + 0x20]
fild dword [ecx + 0x20]
test eax, eax
jge 0x10006b65
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12dc]
mov eax, dword [ecx + 0x24]
fild dword [ecx + 0x24]
test eax, eax
jge 0x10006b7b
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12d4]
mov eax, dword [ecx + 0x28]
fild dword [ecx + 0x28]
test eax, eax
jge 0x10006b91
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12cc]
mov eax, dword [ecx + 0x2c]
fild dword [ecx + 0x2c]
test eax, eax
jge 0x10006ba7
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12c4]
mov eax, dword [ecx + 0x30]
fild dword [ecx + 0x30]
test eax, eax
jge 0x10006bbd
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12bc]
mov eax, dword [ecx + 0x34]
fild dword [ecx + 0x34]
test eax, eax
jge 0x10006bd3
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12b4]
mov eax, dword [ecx + 0x38]
fild dword [ecx + 0x38]
test eax, eax
jge 0x10006be9
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12ac]
mov eax, dword [ecx + 0x3c]
fild dword [ecx + 0x3c]
test eax, eax
jge 0x10006bff
fadd qword [0x101c8c38]
fstp qword [ebp - 0x12a4]
movzx eax, word [ecx + 0x40]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x129c]
movzx eax, word [ecx + 0x42]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x1294]
movzx eax, word [ecx + 0x44]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x128c]
movzx eax, word [ecx + 0x46]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x1284]
movzx eax, word [ecx + 0x48]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x127c]
movzx eax, word [ecx + 0x4a]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x1274]
fst qword [ebp - 0x126c]
mov eax, dword [ecx + 0x50]
fild dword [ecx + 0x50]
test eax, eax
jge 0x10006c9f
fadd qword [0x101c8c38]
fstp qword [ebp - 0x1264]
mov eax, dword [ecx + 0x54]
fild dword [ecx + 0x54]
test eax, eax
jge 0x10006cb5
fadd qword [0x101c8c38]
fstp qword [ebp - 0x125c]
cmp dword [ecx + 0x58], ebx
jne 0x10006cca
fst qword [ebp - 0x1254]
fld1
jmp 0x10006cd2
fld1
fst qword [ebp - 0x1254]
movzx eax, word [ecx + 0x5c]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x124c]
movzx eax, word [ecx + 0x5e]
mov dword [ebp - 0x360], eax
fild dword [ebp - 0x360]
fstp qword [ebp - 0x1244]
mov eax, dword [ecx + 0x60]
fild dword [ecx + 0x60]
test eax, eax
jge 0x10006d0e
fadd qword [0x101c8c38]
fstp qword [ebp - 0x123c]
mov eax, dword [ecx + 0x64]
fild dword [ecx + 0x64]
test eax, eax
jge 0x10006d24
fadd qword [0x101c8c38]
fstp qword [ebp - 0x1234]
mov eax, dword [ecx + 0x68]
fild dword [ecx + 0x68]
test eax, eax
jge 0x10006d3a
fadd qword [0x101c8c38]
fstp qword [ebp - 0x122c]
mov eax, dword [ecx + 0x6c]
fild dword [ecx + 0x6c]
test eax, eax
jge 0x10006d50
fadd qword [0x101c8c38]
fstp qword [ebp - 0x1224]
fxch st(1)
fst qword [ebp - 0x121c]
mov eax, dword [ecx + 0x74]
fild dword [ecx + 0x74]
test eax, eax
jge 0x10006d6e
fadd qword [0x101c8c38]
fstp qword [ebp - 0x1214]
xor eax, eax
mov dword [ebp - 0x37c], eax
cmp eax, 0xe
ja 0x10006db5
cmp eax, 1
je 0x10006d99
cmp eax, 0xc
je 0x10006d99
cmp dword [ecx + eax*8 + 0x7c], ebx
jbe 0x10006d95
fld st(1)
jmp 0x10006dab
fld st(0)
jmp 0x10006dab
mov edi, dword [ecx + eax*8 + 0x7c]
fild dword [ecx + eax*8 + 0x7c]
test edi, edi
jge 0x10006dab
fadd qword [0x101c8c38]
fstp qword [ebp + eax*8 - 0x120c]
inc eax
jmp 0x10006d76
fstp st(1)
mov dword [ebp - 0x3ac], ebx
mov dword [ebp - 0x3b0], ebx
movzx ecx, dx
mov dword [ebp - 0x39c], ecx
mov dword [ebp - 0x3ac], esi
mov dword [ebp - 0x43c], str..rsrc
mov dword [ebp - 0x438], str..text
mov dword [ebp - 0x434], str..data
mov dword [ebp - 0x430], str..rdata
mov dword [ebp - 0x42c], str..reloc
mov dword [ebp - 0x428], str..idata
mov dword [ebp - 0x424], str..tls
mov dword [ebp - 0x420], str..bss
mov dword [ebp - 0x41c], str..pdata
mov dword [ebp - 0x418], str..itext
mov dword [ebp - 0x414], str.UPX0
mov dword [ebp - 0x410], str.UPX1
mov dword [ebp - 0x40c], str.DATA
mov dword [ebp - 0x408], str.CODE
mov dword [ebp - 0x404], 0x10143a44
mov dword [ebp - 0x400], str..CRT
mov dword [ebp - 0x3fc], str..gfids
mov dword [ebp - 0x3f8], str..edata
mov dword [ebp - 0x3f4], str..didata
mov dword [ebp - 0x3f0], str..ndata
mov dword [ebp - 0x3ec], str..xdata
mov dword [ebp - 0x3a4], ebx
fstp qword [ebp - 0x3e4]
push ebx
mov edi, dword [ebp - 0x374]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x5e9ac0
ja 0x1000729f
push ebx
push ebx
lea edx, [ebp - 0x3a4]
push edx
mov ecx, 0x5e9ac0
mov edx, edi
call fcn.100027a0
add esp, 0xc
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x38c], ebx
mov dword [ebp - 0x390], ebx
fld1
fldz
cmp dword [ebp - 0x39c], ebx
jbe 0x1000721d
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x34], 0
cmp al, 0x2f
jne 0x10006f1c
inc dword [ebp - 0x390]
xor edi, edi
mov dword [ebp - 0x3d4], edi
xor edx, edx
mov dword [ebp - 0x3c8], edx
xor ecx, ecx
mov dword [ebp - 0x38c], ecx
cmp ecx, 8
jae 0x10006f63
lea eax, [ebp - 0x35]
sub eax, ecx
cmp byte [eax], 0
jne 0x10006f55
cmp edi, ebx
jne 0x10006f50
inc edx
mov dword [ebp - 0x3c8], edx
jmp 0x10006f60
mov byte [eax], 0x51
jmp 0x10006f60
mov edi, 1
mov dword [ebp - 0x3d4], edi
inc ecx
jmp 0x10006f2e
mov ebx, 8
sub ebx, edx
fld st(0)
fst qword [ebp - 0x3e4]
mov ecx, dword [esi + 0x14]
cmp ecx, 0x5e9ac0
ja 0x10006fb1
mov eax, dword [esi + 0x10]
cmp eax, 0x5e9ac0
ja 0x10006fb1
lea edx, [eax + ecx]
cmp edx, dword [ebp - 0x3a4]
ja 0x10006fb1
fstp st(1)
fstp st(1)
fstp st(0)
mov edx, dword [ebp - 0x360]
add edx, ecx
call fcn.10006220
fst qword [ebp - 0x3e4]
fldz
fld1
fxch st(2)
xor edi, edi
mov dword [ebp - 0x38c], edi
cmp edi, 0x15
jae 0x100070c2
cmp ebx, 2
jbe 0x100070bc
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + edi*4 - 0x43c]
mov ecx, 8
call fcn.100082e0
add esp, 4
test eax, eax
je 0x100070bc
lea eax, [edi + edi*4]
shl eax, 4
fst qword [ebp + eax - 0x1a4c]
mov ecx, dword [esi + 0x10]
fild dword [esi + 0x10]
test ecx, ecx
jge 0x10007008
fadd qword [0x101c8c38]
fstp qword [ebp + eax - 0x1a44]
mov edx, dword [esi + 8]
fild dword [esi + 8]
test edx, edx
jge 0x1000701f
fadd qword [0x101c8c38]
fstp qword [ebp + eax - 0x1a3c]
mov ecx, dword [esi + 8]
fild dword [esi + 8]
test ecx, ecx
jge 0x10007036
fadd qword [0x101c8c38]
fstp qword [ebp + eax - 0x1a34]
mov edx, dword [esi + 0xc]
fild dword [esi + 0xc]
test edx, edx
jge 0x1000704d
fadd qword [0x101c8c38]
fstp qword [ebp + eax - 0x1a2c]
test byte [esi + 0x24], 0x20
jbe 0x1000705e
fld st(2)
jmp 0x10007060
fld st(1)
fstp qword [ebp + eax - 0x1a24]
test byte [esi + 0x24], 0x40
jbe 0x10007071
fld st(2)
jmp 0x10007073
fld st(1)
fstp qword [ebp + eax - 0x1a1c]
test dword [esi + 0x24], 0x20000000
jbe 0x10007087
fld st(2)
jmp 0x10007089
fld st(1)
fstp qword [ebp + eax - 0x1a14]
test dword [esi + 0x24], 0x80000000
jbe 0x1000709d
fld st(2)
jmp 0x1000709f
fld st(1)
fstp qword [ebp + eax - 0x1a0c]
test dword [esi + 0x24], 0x10000000
jbe 0x100070b3
fld st(2)
jmp 0x100070b5
fld st(1)
fstp qword [ebp + eax - 0x1a04]
inc edi
jmp 0x10006fb3
mov edi, dword [ebp - 0x39c]
cmp edi, 1
je 0x100070d6
cmp edi, 2
jne 0x100071fe
mov eax, 2
sub eax, edi
mov dword [ebp - 0x38c], eax
mov ecx, eax
shl ecx, 4
mov dword [ebp - 0x2c], ebx
fild dword [ebp - 0x2c]
test ebx, ebx
jge 0x100070f8
fadd qword [0x101c8c38]
fstp qword [ebp + ecx - 0x13b4]
mov dl, byte [ebp - 0x3c]
cmp dl, 0x2e
je 0x1000711c
cmp dl, 0x41
jb 0x10007111
cmp dl, 0x5a
jbe 0x1000711c
fxch st(1)
fst qword [ebp + ecx - 0x13ac]
jmp 0x10007129
fxch st(2)
fst qword [ebp + ecx - 0x13ac]
fxch st(2)
fxch st(1)
lea eax, [eax + eax*4]
shl eax, 4
mov ecx, dword [esi + 8]
fild dword [esi + 8]
test ecx, ecx
jge 0x1000713f
fadd qword [0x101c8c38]
fstp qword [ebp + eax - 0x1394]
fxch st(1)
fstp qword [ebp + eax - 0x138c]
mov edx, dword [esi + 0x10]
fild dword [esi + 0x10]
test edx, edx
jge 0x1000715f
fadd qword [0x101c8c38]
fstp qword [ebp + eax - 0x1384]
mov ecx, dword [esi + 0xc]
fild dword [esi + 0xc]
test ecx, ecx
jge 0x10007176
fadd qword [0x101c8c38]
fstp qword [ebp + eax - 0x137c]
mov edx, dword [esi + 8]
fild dword [esi + 8]
test edx, edx
jge 0x1000718d
fadd qword [0x101c8c38]
fstp qword [ebp + eax - 0x1374]
test byte [esi + 0x24], 0x20
jbe 0x1000719e
fld st(1)
jmp 0x100071a0
fld st(0)
fstp qword [ebp + eax - 0x136c]
test byte [esi + 0x24], 0x40
jbe 0x100071b1
fld st(1)
jmp 0x100071b3
fld st(0)
fstp qword [ebp + eax - 0x1364]
test dword [esi + 0x24], 0x20000000
jbe 0x100071c7
fld st(1)
jmp 0x100071c9
fld st(0)
fstp qword [ebp + eax - 0x135c]
test dword [esi + 0x24], 0x80000000
jbe 0x100071dd
fld st(1)
jmp 0x100071df
fld st(0)
fstp qword [ebp + eax - 0x1354]
test dword [esi + 0x24], 0x10000000
jbe 0x100071f3
fld st(1)
jmp 0x100071f5
fld st(0)
fstp qword [ebp + eax - 0x134c]
jmp 0x10007200
fstp st(0)
inc dword [ebp - 0x3b0]
add esi, 0x28
mov dword [ebp - 0x3ac], esi
dec edi
mov dword [ebp - 0x39c], edi
xor ebx, ebx
jmp 0x10006ef7
fstp st(0)
fstp st(0)
mov eax, dword [ebp - 0x390]
fild dword [ebp - 0x390]
test eax, eax
jge 0x10007237
fadd qword [0x101c8c38]
fstp qword [ebp - 0x13bc]
mov eax, dword [ebp - 0x3a4]
cmp eax, 0x5e9ac0
jbe 0x1000724f
mov eax, 0x5e9ac0
lea ecx, [ebp - 0x1a54]
push ecx
push eax
mov esi, dword [ebp - 0x360]
push esi
call fcn.10006270
add esp, 0xc
push esi
call fcn.1012fc21
add esp, 4
lea edi, [ebp - 0x1a54]
call fcn.1012b440
mov edx, dword [ebp - 0x368]
fst qword [edx + 0x30]
fcomp qword [0x101c8c48]
fnstsw ax
test ah, 0x41
jne 0x1000729f
mov dword [ebp - 0x364], 0x1b
jmp 0x10006a4a
mov esi, dword [ebp - 0x370]
cmp dword [ebp - 0x380], 1
je 0x10006a4a
mov eax, dword [ebp - 0x36c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x360], eax
test eax, eax
jbe 0x10006a4a
mov ecx, dword [ebp - 0x36c]
mov eax, dword [ecx + 0x28]
test eax, eax
jbe 0x10006a4a
mov edx, ecx
cmp word [edx + 6], 0
jbe 0x10006a4a
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 0x14]
sub eax, edi
xor esi, esi
mov dword [ebp - 0x388], esi
push esi
push esi
push eax
mov ebx, dword [ebp - 0x374]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10007323
push esi
lea eax, [ebp - 0x388]
push eax
push 5
lea ecx, [ebp - 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x100074cf
cmp byte [ebp - 0x28], 0x68
jne 0x100074cf
movzx esi, byte [ebp - 0x25]
shl esi, 8
movzx edx, byte [ebp - 0x26]
add esi, edx
shl esi, 8
movzx eax, byte [ebp - 0x27]
add esi, eax
sub esi, dword [ebp - 0x360]
sub esi, edi
xor ebx, ebx
push ebx
push ebx
push esi
mov ecx, dword [ebp - 0x374]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10007387
push ebx
lea edx, [ebp - 0x388]
push edx
push 5
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov byte [ebp - 0x24], 0
test ebx, ebx
je 0x100074cf
lea edx, [ebp - 0x28]
push edx
mov eax, str.VB5_
mov ecx, 5
call fcn.100082e0
add esp, 4
test eax, eax
je 0x100074cf
mov eax, dword [ebp - 0x368]
or dword [eax], 0x10
xor ebx, ebx
push ebx
push ebx
add esi, 0x30
push esi
mov eax, dword [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100073f1
push ebx
lea ecx, [ebp - 0x388]
push ecx
push 5
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x100074cf
movzx eax, byte [ebp - 0x26]
shl eax, 8
movzx ecx, byte [ebp - 0x27]
add eax, ecx
shl eax, 8
movzx edx, byte [ebp - 0x28]
add eax, edx
sub eax, dword [ebp - 0x360]
sub eax, edi
add eax, 0x24
xor esi, esi
push esi
push esi
push eax
mov edi, dword [ebp - 0x374]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000744e
push esi
lea eax, [ebp - 0x388]
push eax
push 0x20e
lea ecx, [ebp - 0x35c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x100074cf
lea edx, [ebp - 0x35c]
push edx
push 0x10143154
mov ecx, 0x107
lea edi, [ebp - 0x14c]
call fcn.10001100
add esp, 8
cmp byte [ebp - 0x14c], 0
je 0x100074cf
xor edi, edi
xor esi, esi
mov dword [ebp - 0x3d0], esi
cmp esi, dword [0x101cee9c]
jae 0x100074af
mov eax, dword [esi*4 + 0x101ce9e0]
push eax
lea ecx, [ebp - 0x14c]
push ecx
mov eax, 0x107
call fcn.10007ce0
add esp, 8
test eax, eax
je 0x100074cc
lea edi, [esi + 1]
test edi, edi
je 0x100074cf
mov dword [ebp - 0x364], 9
dec edi
mov edx, dword [ebp - 0x368]
mov dword [edx + 0x1c], edi
jmp 0x10006a4a
inc esi
jmp 0x1000747e
mov edi, dword [ebp - 0x36c]
movzx eax, word [edi + 0x44]
test eax, 0xff00
je 0x10007508
mov ecx, 0xff00
test word [edi + 0x46], cx
je 0x10007508
movzx ecx, word [edi + 0x52]
cmp ecx, 0x43
je 0x100074f9
cmp ecx, 0x1d
jne 0x10007508
mov dword [ebp - 0x364], 0xa
jmp 0x10006a4a
mov esi, 1
cmp ax, si
jne 0x1000754f
cmp word [edi + 0x46], 0
jne 0x1000754f
mov ecx, dword [ebp - 0x370]
cmp dword [ecx + 0xc], 0x1000
jne 0x10007539
mov eax, dword [ecx + 0x14]
cmp eax, 0x400
je 0x10007545
cmp eax, 0x1000
je 0x10007545
cmp dword [edi + 0xd0], 0x220
jne 0x10007555
mov eax, esi
mov dword [ebp - 0x360], esi
jmp 0x1000755d
mov ecx, dword [ebp - 0x370]
xor eax, eax
mov dword [ebp - 0x360], eax
mov ebx, dword [edi + 0x9c]
mov edx, dword [ebp - 0x368]
mov dword [edx + 0x20], ebx
test byte [edx], 0x10
je 0x10007578
test eax, eax
je 0x10007578
mov dword [edx + 0x18], esi
xor ebx, ebx
cmp eax, ebx
je 0x10007585
movzx eax, byte [edi + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x10]
cmp eax, ebx
jne 0x10007593
mov eax, dword [ecx + 0x38]
cmp eax, ebx
jbe 0x10007596
mov dword [edx + 8], eax
cmp dword [edi + 0x34], 0x10000000
jne 0x10007604
cmp dword [edi + 0x7c], ebx
jne 0x10007604
cmp dword [edi + 0x78], ebx
jne 0x10007604
cmp dword [edi + 0x8c], ebx
jne 0x10007604
cmp dword [edi + 0x88], ebx
jne 0x10007604
mov eax, dword [edi + 0x50]
cmp dword [ecx + 0x10], ebx
jne 0x100075ec
cmp eax, 0x1a000
je 0x100075dd
cmp eax, 0x1b000
je 0x100075dd
cmp eax, 0x1c000
je 0x100075dd
cmp eax, 0x1d000
jne 0x10007604
xor eax, eax
cmp eax, dword [ecx + 0x38]
sbb ecx, ecx
and ecx, 2
mov dword [edx + 0x14], ecx
jmp 0x10007604
cmp eax, 0x17000
je 0x10007601
cmp eax, 0x18000
je 0x10007601
cmp eax, 0x19000
jne 0x10007604
mov dword [edx + 0x14], esi
mov edx, dword [edi + 0x80]
mov dword [ebp - 0x380], edx
mov dword [ebp - 0x3a0], 0xffffffff
mov dword [ebp - 0x3b8], esi
mov dword [ebp - 0x3b4], esi
mov dword [ebp - 0x3bc], ebx
mov dword [ebp - 0x398], ebx
mov dword [ebp - 0x3cc], ebx
cmp word [ebp - 0x384], 0
jbe 0x1000784f
push 4
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x10007845
mov esi, dword [ebp - 0x370]
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x380], eax
jb 0x1000767a
mov ecx, eax
sub ecx, dword [esi + 0x14]
mov dword [ebp - 0x3a0], ecx
mov ecx, dword [edi + 0x28]
cmp eax, ecx
ja 0x10007690
mov edx, dword [esi + 8]
add edx, eax
cmp ecx, edx
jae 0x10007690
mov dword [ebp - 0x394], esi
test ebx, ebx
jne 0x100076c7
push esi
mov eax, str..text
lea ecx, [ebx + 8]
call fcn.100082e0
add esp, 4
test eax, eax
jne 0x100076c7
push esi
mov eax, str.CODE
lea ecx, [ebx + 8]
call fcn.100082e0
add esp, 4
test eax, eax
jne 0x100076c7
mov eax, dword [ebp - 0x368]
or dword [eax], 1
cmp ebx, 1
jne 0x100076e3
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x10]
mov dword [ebp - 0x3b8], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], ecx
cmp ebx, 2
jne 0x10007706
push esi
mov eax, str..rsrc
lea ecx, [ebx + 6]
call fcn.100082e0
add esp, 4
test eax, eax
je 0x10007706
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x3b4], edx
cmp ebx, 3
jne 0x10007729
push esi
mov eax, str..rsrc
lea ecx, [ebx + 5]
call fcn.100082e0
add esp, 4
test eax, eax
je 0x10007729
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x3b4], eax
cmp ebx, 2
jne 0x1000775d
mov ecx, dword [ebp - 0x368]
test byte [ecx], 1
je 0x1000775d
push esi
mov eax, str._winc
lea ecx, [ebx + 6]
call fcn.100082e0
add esp, 4
test eax, eax
je 0x1000775d
mov dword [ebp - 0x364], 0xc
jmp 0x10006a4a
test ebx, ebx
jbe 0x10007774
cmp dword [esi + 0x24], 0xe0000060
jne 0x10007774
mov dword [ebp - 0x3bc], 1
cmp word [ebp - 0x384], 1
jne 0x1000797f
test ebx, ebx
jbe 0x1000797f
mov ecx, dword [ebp - 0x368]
test byte [ecx], 2
jne 0x1000797f
cmp word [esi + 0x22], 0
jbe 0x100077b5
cmp dword [edi + 0x58], 0
jne 0x100077b5
mov dword [ebp - 0x364], 0x18
jmp 0x1000784f
mov eax, dword [edi + 0x58]
test eax, eax
jne 0x10007807
cmp dword [esi + 0x24], 0xc0000000
jne 0x100077d6
cmp dword [esi + 0x10], eax
jne 0x100077d6
mov dword [ebp - 0x364], 0x15
jmp 0x1000784f
test eax, eax
jne 0x10007807
cmp dword [ebp - 0x3bc], eax
je 0x100077ee
mov dword [ebp - 0x364], 0x19
jmp 0x1000784f
test eax, eax
jne 0x10007807
test dword [esi + 0x24], 0x20000000
je 0x10007807
mov dword [ebp - 0x364], 0x1a
jmp 0x1000784f
mov eax, dword [esi + 0x24]
test eax, 0x20000000
je 0x10007821
test eax, eax
jns 0x10007821
mov dword [ebp - 0x364], 0x16
jmp 0x1000784f
test al, 0x20
je 0x1000797f
cmp byte [esi], 0
je 0x1000797f
cmp dword [edi + 8], 0xa0a0a0a0
jne 0x1000786e
mov dword [ebp - 0x364], 8
mov dword [ebp - 0x398], 1
xor ecx, ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x3d8], eax
cmp eax, 0x1e
jae 0x10007998
mov dword [ebp + eax*4 - 0x45c], ecx
inc eax
jmp 0x10007855
mov dword [ecx + 0x14], 5
mov edx, dword [esi + 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, 2
mov dword [ebp - 0x364], eax
mov dword [ebp - 0x3c4], 0
lea ecx, [eax - 1]
cmp byte [ebp - 0x30], 0x2e
je 0x100078a1
mov ecx, eax
mov dword [ebp - 0x3c4], eax
cmp eax, 8
jae 0x100078c7
mov edx, eax
sub edx, ecx
mov dl, byte [ebp + edx - 0x30]
cmp dl, byte [eax + esi]
je 0x10007979
mov dword [ebp - 0x364], 0
cmp dword [ebp - 0x394], 0
je 0x10007845
cmp dword [ebp - 0x394], esi
jne 0x10007845
mov eax, dword [ebp - 0x368]
mov dword [eax + 0x14], 4
push esi
mov eax, str..rsrc
mov ecx, 8
call fcn.100082e0
add esp, 4
test eax, eax
jne 0x1000796a
push esi
mov eax, str..reloc
mov ecx, 8
call fcn.100082e0
add esp, 4
test eax, eax
jne 0x1000796a
push esi
mov eax, str..data
mov ecx, 8
call fcn.100082e0
add esp, 4
test eax, eax
jne 0x1000796a
lea ecx, [esi + 2]
push ecx
mov eax, str.data
mov ecx, 6
call fcn.100082e0
add esp, 4
test eax, eax
jne 0x1000796a
add esi, 3
push esi
mov eax, str.data
mov ecx, 5
call fcn.100082e0
add esp, 4
test eax, eax
je 0x10007845
mov dword [ebp - 0x364], 6
jmp 0x10007845
inc eax
jmp 0x100078a1
inc ebx
add esi, 0x28
mov dword [ebp - 0x370], esi
add dword [ebp - 0x384], 0xffff
jmp 0x10007632
cmp ecx, ecx
je 0x100079ab
mov dword [ebp - 0x364], 0x12
jmp 0x10006a4a
mov dword [ebp - 0x3c0], ecx
cmp ebx, ecx
je 0x100079cf
mov edx, dword [ebp - 0x368]
test byte [edx], 0x10
je 0x100079cf
mov dword [ebp - 0x364], 0x11
jmp 0x10006a4a
mov eax, dword [ebp - 0x368]
test byte [eax], 0x10
jne 0x10007a8c
cmp dword [ebp - 0x360], ecx
jne 0x100079ee
cmp ebx, ecx
je 0x10007a8c
mov esi, dword [ebp - 0x380]
sub esi, dword [ebp - 0x3a0]
add esi, dword [ebp - 0x378]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x10006a4a
mov eax, dword [esi + 0xc]
sub eax, dword [ebp - 0x3a0]
xor esi, esi
push esi
push esi
push eax
mov edi, dword [ebp - 0x374]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10007a49
push esi
lea ecx, [ebp - 0x388]
push ecx
push 0xd
lea edx, [ebp - 0x40]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x10007a8c
lea eax, [ebp - 0x40]
push eax
mov eax, str.MSVBVM60.DLL
mov ecx, 0xd
call fcn.100082e0
add esp, 4
test eax, eax
je 0x10007a8c
test ebx, ebx
je 0x10007a77
mov dword [ebp - 0x3c0], 1
jmp 0x10007a8c
mov ecx, dword [ebp - 0x368]
cmp dword [ecx + 0x18], 0
jne 0x10007a8c
mov edx, ecx
mov dword [edx + 0x18], 1
test ebx, ebx
je 0x10007a9d
cmp dword [ebp - 0x3c0], 0
jne 0x100079c0
mov eax, dword [ebp - 0x368]
cmp dword [eax + 0x18], 1
jne 0x10006a4a
cmp dword [ebp - 0x3b8], 0
je 0x10006a4a
mov dword [eax + 0x18], 0
jmp 0x10006a4a