Function at 0x10076807
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp + 0x3c], ecx
push 0x10
lea ecx, [ebp - 0x98]
call fcn.10046141
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp - 0x88]
xor ebx, ebx
push eax
mov dword [ebp - 0x88], ebx
call fcn.1004e44a
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x23
pop ecx
pop ecx
mov dword [ebp - 0x24], str.0xFFFFFFFF
mov byte [ebp + 0x6d], bl
mov byte [ebp + 0x17], bl
mov byte [ebp + 0x6f], bl
mov dword [ebp - 0x20], 0x200
jne 0x10076867
add dword [ebp + 0x78], 2
mov byte [ebp + 0x6d], 1
lea eax, [ebp + 0x78]
push eax
call fcn.10008e60
pop ecx
push 1
lea ecx, [ebp - 0x9c]
call fcn.10046141
lea ecx, [ebp + 0x50]
call fcn.10046123
push 1
lea ecx, [ebp - 0x18]
call fcn.10046141
push 1
lea ecx, [ebp - 0x48]
call fcn.10046141
lea ecx, [ebp + 0x20]
call fcn.10046123
mov esi, dword [ebp + 0x78]
lea ecx, [ebp - 0x70]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp - 0x34], esi
call fcn.10046123
cmp word [esi], 0x2d
jne 0x10076922
xor ecx, ecx
mov cx, word [esi + 2]
cmp cx, bx
je 0x100768fa
mov eax, ecx
call fcn.10002df6
test al, al
jne 0x100768fa
cmp cx, 0x2c
je 0x100768fa
lea eax, [ebp - 0x34]
push eax
call fcn.10008e60
mov esi, dword [ebp - 0x34]
cmp word [esi], 0x2d
pop ecx
je 0x100768cb
cmp esi, dword [ebp + 0x78]
je 0x10076922
cmp word [esi], bx
mov di, word [esi - 2]
je 0x1007690c
mov word [esi - 2], bx
mov ecx, dword [ebp + 0x3c]
push 1
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x78]
call fcn.10058f7c
mov word [esi - 2], di
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x4c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 4], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp + 0x6e], bl
mov byte [ebp + 0x33], bl
mov dword [ebp + 0x60], ebx
mov dword [ebp - 0x34], ebx
call fcn.10046123
lea ecx, [ebp - 0x6c]
call fcn.10046123
jmp 0x10076b74
push 5
lea eax, [ebp + 0x78]
push eax
push str._find
call fcn.10048195
add esp, 0xc
test al, al
je 0x1007696f
mov byte [ebp + 0x6f], 1
jmp 0x10076b74
mov edi, dword [ebp + 0x78]
push 2
push edi
push 0x100d1d10
call fcn.10040df5
add esp, 0xc
test al, al
je 0x10076a1e
mov ax, word [edi + 4]
cmp ax, 0x3d
je 0x1007699e
cmp ax, 0x3a
jne 0x10076a1e
lea eax, [ebp + 0x78]
add edi, 6
push eax
mov dword [ebp + 0x78], edi
mov dword [ebp + 0x54], edi
call fcn.10008e60
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.1004970d
mov eax, dword [ebp + 0x54]
add esp, 0xc
cmp word [eax], 0x40
jne 0x10076b74
add dword [ebp + 0x54], 2
mov edi, dword [ebp + 0x54]
lea eax, [ebp + 0x54]
push eax
call fcn.10005b74
mov eax, dword [ebp + 0x54]
mov dx, word [eax]
lea eax, [ebp + 0x54]
push eax
call fcn.1003f9c4
cmp dx, bx
pop ecx
pop ecx
je 0x100769fa
mov eax, dword [ebp + 0x54]
mov word [eax - 2], bx
mov ecx, dword [ebp + 0x3c]
push 1
push ebx
lea eax, [ebp - 0x4c]
push eax
push edi
call fcn.10058f7c
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 8
mov dword [ebp - 0x30], eax
jmp 0x10076b74
push 6
lea eax, [ebp + 0x78]
push eax
push str._nolen
call fcn.10048195
add esp, 0xc
test al, al
je 0x10076a3e
mov byte [ebp + 0x17], 1
jmp 0x10076b74
push 4
lea eax, [ebp + 0x78]
push eax
push 0x100d0330
call fcn.10048195
add esp, 0xc
test al, al
je 0x10076a5e
mov byte [ebp + 0x6e], 1
jmp 0x10076b74
push 5
lea eax, [ebp + 0x78]
push eax
push str._free
call fcn.10048248
add esp, 0xc
test al, al
jne 0x10076bdf
push 3
lea eax, [ebp + 0x78]
push eax
push 0x100d1d04
call fcn.10048248
add esp, 0xc
test al, al
je 0x10076b31
mov edi, dword [ebp + 0x78]
lea eax, [ebp + 0x78]
push eax
mov dword [ebp + 0x58], edi
call fcn.10008e60
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp word [edi], 0x3f
pop ecx
mov dword [ebp + 0xc], ebx
jne 0x10076ae6
inc edi
inc edi
lea eax, [ebp + 0x34]
push eax
mov dword [ebp + 0x58], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x34], edi
call fcn.10005b74
mov eax, dword [ebp + 0x34]
cmp word [eax], bx
pop ecx
je 0x10076ad3
mov word [eax], bx
mov ecx, dword [ebp + 0x3c]
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.1004e8ba
mov dword [ebp + 0x58], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.10042530
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
pop ecx
pop ecx
mov edi, eax
je 0x10076b27
cmp eax, ebx
je 0x10076b27
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp + 8], ebx
call fcn.1004000d
test eax, eax
pop ecx
pop ecx
je 0x10076b27
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov dword [ebp + 0x60], edi
je 0x10076b23
mov dword [ebp + 0x60], eax
mov byte [ebp + 0x33], 1
lea ecx, [ebp + 0xc]
call fcn.1003f96c
jmp 0x10076b74
push 5
push dword [ebp + 0x78]
push 0x100d1cfc
call fcn.10040df5
add esp, 0xc
test al, al
je 0x10076b81
add dword [ebp + 0x78], 0xa
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x78]
push eax
call fcn.10005b74
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
pop ecx
je 0x10076b6a
mov word [eax], bx
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x78]
push eax
call fcn.1003f9c4
pop ecx
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2d
je 0x1007694f
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x84], eax
mov al, byte [ebp + 0x6e]
neg al
mov dword [ebp + 0x78], esi
mov esi, dword [ebp + 0x3c]
mov ecx, esi
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
push eax
push 0x2c
pop edi
push edi
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.1003aaa0
push 1
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x78]
mov ecx, esi
call fcn.10058f7c
cmp dword [ebp + 0x60], ebx
mov eax, dword [ebp - 0x6c]
mov dword [ebp + 0x78], eax
mov eax, dword [ebp + 0x50]
jne 0x10076c25
cmp word [eax], bx
jne 0x10076c25
mov ebx, 0x80070057
jmp 0x10077ae4
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x78]
push eax
call fcn.10008e60
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.10042530
add esp, 0xc
cmp dword [ebp - 0x3c], 0xffffffff
je 0x10077ae4
cmp dword [ebp - 0x3c], ebx
je 0x10077ae4
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10077ae4
cmp word [eax], 0x26
jne 0x10076c2f
mov byte [ebp + 0x6e], 1
push ebx
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.1003ac59
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp word [eax], bx
je 0x10076bd5
push ebx
push edi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x78]
push eax
mov ecx, esi
call fcn.1003ac0c
mov eax, dword [ebp - 0x48]
cmp word [eax], bx
je 0x10076bd5
push ebx
push edi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x78]
push eax
mov ecx, esi
mov dword [ebp + 0xc], ebx
call fcn.1003ac0c
cmp byte [ebp + 0x6f], bl
mov eax, dword [ebp - 0x48]
mov dword [ebp + 0x10], eax
je 0x10076cba
cmp byte [eax], 0x2a
jne 0x10076cba
add eax, 2
mov dword [ebp + 0x10], eax
cmp word [eax], 0x3c
mov byte [ebp + 0x6f], 3
jne 0x10076cba
inc eax
inc eax
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.10045dbc
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
push dword [ebp + 0x50]
mov dword [ebp - 0x40], 1
push str.DevicePhysicalMemory
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb al, al
inc al
cmp byte [ebp + 0x33], bl
mov byte [ebp + 0x1f], al
je 0x10076ce6
cmp dword [ebp + 0x60], ebx
je 0x10077604
cmp byte [ebp + 0x6f], bl
je 0x10076cf7
mov eax, dword [ebp + 0x20]
cmp word [eax], bx
je 0x10077604
lea ecx, [ebp - 0x60]
call fcn.10045faf
cmp byte [ebp + 0x6e], bl
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0x34], eax
jne 0x10076de8
lea eax, [ebp + 0x34]
push 1
push eax
call fcn.1004e376
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x10076de8
cmp word [eax], 0x23
jne 0x10076de8
mov si, word [eax]
mov edi, dword [0x100e2fc0]
mov word [eax], bx
mov eax, dword [ebp + 0x34]
mov cx, word [eax]
cmp cx, 0x2e
mov dword [ebp + 0x18], ebx
jne 0x10076d62
cmp word [eax + 2], bx
jne 0x10076d62
mov edi, dword [0x100e2c88]
jmp 0x10076d76
cmp cx, bx
je 0x10076d76
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp + 0x18], edi
mov eax, dword [ebp - 0x1c]
mov word [eax], si
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x58], 0x20
cmp word [eax], 0x2e
mov dword [ebp + 0x34], ebx
jne 0x10076da4
mov word [eax], 0x23
add dword [ebp - 0x1c], 2
mov dword [ebp + 0x58], 0x40
cmp edi, ebx
je 0x10076dda
push 0x100c7cf8
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100578fe
movzx ecx, byte [ebp + 0x58]
mov dword [ebp + 0x58], ecx
lea ecx, [ebp + 0x58]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
push dword [ebp + 0x34]
push edi
call fcn.100155e3
add esp, 0x20
mov byte [ebp + 0x6e], 2
cmp dword [ebp + 0x18], ebx
je 0x10076de8
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x50]
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x50], ebx
call fcn.100132bf
pop ecx
push eax
lea ecx, [ebp + 0x50]
call fcn.1005026c
lea ecx, [ebp - 0x14]
call fcn.1003f96c
mov eax, dword [ebp + 0x20]
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x20], ebx
call fcn.100132bf
pop ecx
push eax
lea ecx, [ebp + 0x20]
call fcn.1005026c
lea ecx, [ebp - 0x14]
call fcn.1003f96c
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x78]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
call fcn.1005381f
mov eax, dword [ebp + 0x78]
pop ecx
pop ecx
push 0x23
pop edi
cmp word [eax], di
jne 0x10076f42
add dword [ebp + 0x78], 2
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2a
jne 0x10076e86
or esi, 0xffffffff
add dword [ebp + 0x78], 2
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x4c], 0x7fffffff
jmp 0x10076e98
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.1005381f
mov esi, dword [ebp + 0x48]
pop ecx
pop ecx
mov eax, dword [ebp + 0x78]
cmp word [eax], di
jne 0x10076f45
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.1005381f
test eax, eax
pop ecx
pop ecx
jle 0x10076ec5
mov eax, dword [ebp + 0x64]
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov eax, dword [ebp + 0x78]
cmp word [eax], di
jne 0x10076f45
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.1005381f
test eax, eax
pop ecx
pop ecx
jle 0x10076eee
mov eax, dword [ebp + 0x64]
cdq
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0x78]
cmp word [eax], di
jne 0x10076f45
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.1005381f
test eax, eax
pop ecx
pop ecx
jle 0x10076f17
mov eax, dword [ebp + 0x64]
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov eax, dword [ebp + 0x78]
cmp word [eax], di
jne 0x10076f45
add dword [ebp + 0x78], 2
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.1005381f
test eax, eax
pop ecx
pop ecx
jle 0x10076f45
mov eax, dword [ebp + 0x64]
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
jmp 0x10076f45
mov esi, dword [ebp + 0x48]
lea eax, [ebp + 0x78]
push eax
call fcn.1003f9c4
cmp byte [ebp + 0x1f], bl
pop ecx
mov dword [ebp + 0x38], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x10076f9b
push dword [ebp - 0x18]
call fcn.1003f93e
pop ecx
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.10045ff1
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x44]
mov dword [ebp + 0x38], eax
push dword [ebp + 0x40]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], ebx
call fcn.100147c5
add esp, 0x10
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov byte [ebp + 0x6e], 8
mov eax, dword [ebp + 0x50]
cmp word [eax], 0x75
jne 0x1007706e
cmp word [eax + 2], 0x64
jne 0x1007706e
cmp word [eax + 4], 0x3a
jne 0x1007706e
mov ecx, dword [ebp + 0x40]
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp + 0x44]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp + 0x4c]
mov dword [ebp - 0xa4], esi
push 0x22
add eax, 6
pop esi
mov dword [ebp - 0xa0], ecx
cmp word [eax], si
mov dword [ebp + 0x58], eax
mov byte [ebp + 0x6e], 4
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
jne 0x10076ffc
inc eax
inc eax
mov dword [ebp + 0x58], eax
mov edi, eax
push 0x3a
lea eax, [ebp + 0x58]
call fcn.100a1095
mov eax, dword [ebp + 0x58]
cmp eax, edi
pop ecx
je 0x1007701a
cmp word [eax - 2], si
jne 0x1007701a
mov word [eax - 2], bx
cmp word [eax], 0x3a
jne 0x10077025
mov word [eax], bx
inc eax
inc eax
cmp word [eax], si
mov ecx, eax
jne 0x1007703e
lea ecx, [eax + 2]
inc eax
inc eax
cmp word [eax], si
jne 0x10077039
mov word [eax], bx
cmp word [eax], bx
jne 0x1007702f
lea eax, [ebp - 0xac]
push eax
push ebx
push 0x10000
push ecx
lea eax, [ebp - 0x60]
push eax
push edi
call fcn.1003d5a1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
cdq
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
add esp, 0x18
add ecx, eax
mov dword [ebp - 8], edx
mov dword [ebp + 0x38], ecx
push 0x3c
lea ecx, [ebp + 0x2c]
call fcn.10046141
lea ecx, [ebp - 0x94]
call fcn.10046123
mov al, byte [ebp + 0x6f]
and al, 2
neg al
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp + 0x18], 0x80070057
mov byte [ebp + 0x5c], bl
mov dword [ebp - 0x2c], ebx
sbb eax, eax
or dword [ebp - 4], 0xffffffff
or dword [ebp], 0xffffffff
and eax, ecx
cmp byte [ebp + 0x6f], bl
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp - 0x10], ebx
mov edi, 0x100e3d7c
mov esi, 0x80000000
je 0x1007722e
mov eax, dword [ebp + 0x20]
cmp word [eax], 0x2a
jne 0x100771a2
add eax, 2
cmp word [eax], 0x26
je 0x1007713f
mov ecx, dword [ebp + 0x3c]
test byte [ecx + 9], 0x11
jne 0x1007713f
push ebx
lea ecx, [ebp + 0x58]
push ecx
mov ecx, dword [ebp + 0x3c]
push eax
call fcn.1004e8ba
mov eax, dword [ebp + 0x58]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
cmp eax, ebx
mov dword [ebp + 0x28], eax
jg 0x1007722e
push str._I64d
push dword [ebp + 0x10]
push dword [ebp]
push dword [ebp - 4]
push dword [ebp + 0x3c]
call fcn.100487c8
add esp, 0x14
jmp 0x1007775c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x3c]
push ebx
push 0xffffffffffffffff
add eax, 2
push ebx
push eax
call fcn.10010cdd
cmp eax, ebx
mov dword [ebp + 0x34], eax
je 0x1007716a
mov eax, dword [eax + 0x10]
cmp eax, ebx
mov dword [ebp + 0x28], eax
jg 0x10077173
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10077121
push dword [ebp + 0x28]
lea ecx, [ebp + 0x58]
call fcn.10046168
push dword [ebp + 0x28]
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x58]
push dword [ecx + 4]
mov dword [ebp - 0x10], eax
push eax
call fcn.100144b5
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1007722e
push eax
call fcn.10004e63
test eax, eax
pop ecx
je 0x100771c0
push 3
push esi
push dword [ebp + 0x20]
call fcn.10014572
add esp, 0xc
mov dword [ebp + 0x54], eax
jmp 0x100771d3
push ebx
push ebx
push 3
push ebx
push 3
push esi
push dword [ebp + 0x20]
lea ecx, [ebp + 0x54]
call fcn.10005b9d
cmp dword [ebp + 0x54], ebx
jne 0x100771f3
push ebx
push ebx
push 0x2000003
push ebx
push 3
push esi
push dword [ebp + 0x20]
lea ecx, [ebp + 0x54]
call fcn.10005b9d
cmp dword [ebp + 0x54], ebx
je 0x1007722e
push 2
push ebx
push ebx
push dword [ebp + 0x54]
call fcn.10040d01
add esp, 0x10
cmp edx, ebx
jl 0x10077216
mov ecx, 0x20000000
jg 0x10077211
cmp eax, ecx
jbe 0x10077216
mov eax, ecx
mov dword [ebp - 0x74], ebx
push ebx
push ebx
mov dword [ebp + 0x28], eax
push 2
cdq
push edx
push eax
push dword [ebp + 0x54]
lea ecx, [ebp - 0x2c]
call fcn.1003f887
mov dword [ebp - 0x10], eax
cmp byte [ebp + 0x6e], bl
je 0x1007746e
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp + 0x60]
call fcn.10046123
cmp byte [ebp + 0x6e], 1
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x5c], eax
jne 0x10077285
mov ecx, dword [ebp + 0x3c]
push ebx
lea eax, [ebp + 0x50]
push eax
call fcn.10002f54
mov ecx, dword [ebp + 0x3c]
push ebx
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x50]
call fcn.10010cdd
cmp eax, ebx
je 0x1007745b
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov dword [ebp + 0x5c], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
cmp byte [ebp + 0x6e], 2
jne 0x1007729b
mov eax, dword [ebp - 0x5c]
cdq
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], edx
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x40]
cdq
cmp edx, dword [ebp - 8]
jl 0x100772b1
jg 0x100772ab
cmp eax, dword [ebp - 0xc]
jbe 0x100772b1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp byte [ebp + 0x6f], bl
jne 0x100772b9
add dword [ebp + 0x5c], eax
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub esi, eax
mov eax, dword [ebp + 0x48]
sbb ecx, edx
cmp dword [ebp + 0x4c], ecx
cdq
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], edx
jl 0x100772e1
jg 0x100772d9
cmp dword [ebp + 0x48], esi
jbe 0x100772e1
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x68], ecx
jmp 0x100772e4
mov esi, dword [ebp + 0x64]
cmp byte [ebp + 0x6f], bl
je 0x10077334
push dword [ebp + 0xc]
push dword [ebp + 0x5c]
push dword [ebp - 0x80]
push dword [ebp - 0x68]
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push ebx
push dword [ebp + 0x28]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push dword [ebp - 0x44]
call fcn.1004db0a
add esp, 0x3c
lea ecx, [ebp + 0x60]
mov dword [ebp - 4], eax
mov dword [ebp], edx
call fcn.1003f96c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10077741
cmp byte [ebp + 0x6d], bl
je 0x10077363
push ebx
push ebx
push dword [ebp + 0x64]
push dword [ebp + 0x5c]
push dword [ebp + 0x10]
push dword [ebp + 0x3c]
call fcn.10053ed6
add esp, 0x18
lea ecx, [ebp + 0x60]
call fcn.1003f96c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10077ab1
cmp dword [ebp + 4], ebx
lea esi, [esi + esi*4 + 0xa]
jle 0x10077389
mov eax, dword [ebp + 4]
cdq
push edx
push eax
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.100b4150
mov ecx, dword [ebp - 0x30]
inc eax
add ecx, 2
imul eax, ecx
add esi, eax
add esi, 6
push esi
lea ecx, [ebp + 0x60]
call fcn.10046168
add dword [ebp + 0x64], 0xffffffff
mov eax, dword [ebp + 0x60]
mov esi, eax
adc dword [ebp + 0x68], 0xffffffff
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
js 0x10077453
jg 0x100773b9
cmp dword [ebp + 0x64], ebx
jb 0x10077453
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [ebp + 4], ebx
jle 0x10077415
mov eax, dword [ebp + 4]
cdq
push edx
push eax
push dword [ebp + 0x44]
push dword [ebp + 0x40]
call fcn.100b64f0
or eax, edx
jne 0x10077415
cmp dword [ebp + 0x44], ebx
jl 0x100773f3
jg 0x100773e5
cmp dword [ebp + 0x40], ebx
jbe 0x100773f3
mov word [esi], 0xd
inc esi
inc esi
mov word [esi], 0xa
inc esi
inc esi
cmp dword [ebp - 0x30], ebx
je 0x10077415
push dword [ebp - 0x84]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push str._8X_s
push esi
call edi
mov eax, dword [ebp - 0x30]
add esp, 0x14
lea esi, [esi + eax*2]
mov eax, dword [ebp + 0x5c]
movzx eax, byte [eax]
push eax
push 0x100cc278
push esi
call edi
add esp, 0xc
inc dword [ebp + 0x5c]
add esi, 0xa
add dword [ebp + 0x40], 1
lea eax, [esi - 2]
adc dword [ebp + 0x44], ebx
add dword [ebp + 0x64], 0xffffffff
adc dword [ebp + 0x68], 0xffffffff
cmp dword [ebp + 0x68], ebx
jg 0x100773bf
jl 0x10077453
cmp dword [ebp + 0x64], ebx
jae 0x100773bf
mov word [eax], bx
mov edi, 0x100e3d7c
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x3c]
push dword [ebp + 0x10]
call fcn.100457c2
jmp 0x1007734f
cmp byte [ebp + 0x1f], bl
jne 0x1007749e
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.1004d921
cmp al, bl
pop ecx
pop ecx
mov byte [ebp + 0x5c], al
jge 0x1007749e
cmp byte [ebp + 0x6f], bl
jne 0x10077741
mov dword [ebp - 0x40], 0x80070057
jmp 0x100775d1
mov eax, dword [ebp + 0x60]
or edi, 0xffffffff
cmp byte [ebp + 0x33], bl
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x68], edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp + 0x34], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x24], eax
je 0x100774cd
push ebx
push ebx
push ebx
push eax
call fcn.10040d01
add esp, 0x10
cmp dword [ebp + 0x60], ebx
jne 0x10077599
push dword [ebp + 0x50]
call fcn.10004e63
test eax, eax
pop ecx
mov edi, 0x2000000
je 0x10077504
push 3
push esi
push dword [ebp + 0x50]
mov byte [ebp + 0x5c], 1
call fcn.10014572
add esp, 0xc
cmp eax, ebx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x24], eax
jne 0x10077534
push ebx
push edi
push 3
push ebx
push 3
push esi
push dword [ebp + 0x50]
lea ecx, [ebp + 0x38]
call fcn.10005b9d
cmp eax, ebx
mov dword [ebp + 0x24], eax
jne 0x10077534
push ebx
push ebx
push 3
push ebx
push 3
push esi
push dword [ebp + 0x50]
lea ecx, [ebp + 0x38]
call fcn.10005b9d
mov dword [ebp + 0x24], eax
cmp dword [ebp + 8], ebx
je 0x10077588
cmp dword [ebp + 0x24], ebx
je 0x1007758d
push dword [ebp + 8]
push dword [ebp + 0x24]
push dword [ebp + 0x3c]
call fcn.100104aa
add esp, 0xc
push ebx
push edi
push 3
push ebx
push 3
push esi
push dword [ebp + 0x50]
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x38], ebx
call fcn.10005b9d
cmp dword [ebp + 0x38], ebx
jne 0x10077582
push ebx
push edi
push 3
push ebx
push 3
push esi
push dword [ebp + 0x50]
lea ecx, [ebp + 0x38]
call fcn.10005b9d
cmp dword [ebp + 0x38], ebx
je 0x10077588
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x24], ebx
jne 0x10077596
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0x68]
cmp byte [ebp + 0x5c], 0x11
mov esi, dword [ebp + 0x24]
jne 0x1007761a
lea eax, [ebp + 0x64]
push eax
push 0xffffffffffffffff
push esi
call fcn.1005782a
add esp, 0xc
cmp edx, ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
jg 0x10077688
jl 0x100775c9
cmp eax, ebx
jae 0x10077688
lea ecx, [ebp + 0x38]
call fcn.10002d56
lea ecx, [ebp + 0x54]
call fcn.10002d56
lea ecx, [ebp + 0x58]
call fcn.1003f96c
lea ecx, [ebp - 0x2c]
call fcn.1000f660
lea ecx, [ebp - 0x94]
call fcn.1003f96c
lea ecx, [ebp + 0x2c]
call fcn.1003f96c
lea ecx, [ebp - 0x60]
call fcn.1003f96c
push dword [ebp - 0x24]
mov ecx, dword [ebp + 0x3c]
push dword [ebp + 0x10]
call fcn.100457c2
mov ebx, dword [ebp - 0x40]
jmp 0x10077ae4
cmp esi, ebx
je 0x10077681
cmp byte [ebp + 0x5c], bl
jne 0x10077671
push 2
push ebx
push ebx
push esi
call fcn.10040d01
mov edi, edx
add esp, 0x10
cmp edi, ebx
mov dword [ebp + 0x64], eax
jg 0x1007769f
jl 0x1007763f
cmp eax, ebx
jae 0x1007769f
mov eax, dword [ebp + 0x50]
cmp word [eax], 0x5c
jne 0x1007765b
push 1
push esi
mov byte [ebp + 0x5c], 1
call fcn.10044651
pop ecx
pop ecx
mov dword [ebp + 0x64], eax
mov edi, edx
cmp edi, ebx
jg 0x10077681
jl 0x10077666
cmp dword [ebp + 0x64], ebx
jae 0x10077681
or dword [ebp + 0x64], 0xffffffff
mov edi, 0x7fffffff
jmp 0x10077681
push dword [ebp + 0x5c]
push esi
call fcn.10044651
pop ecx
pop ecx
mov dword [ebp + 0x64], eax
mov edi, edx
cmp byte [ebp + 0x5c], bl
je 0x1007769f
jmp 0x1007768b
mov edi, dword [ebp + 0x68]
cmp esi, ebx
je 0x1007769f
push 0x200
push esi
call fcn.1004342a
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x6f], bl
je 0x10077764
or dword [ebp - 4], 0xffffffff
or dword [ebp], 0xffffffff
cmp dword [ebp - 0x38], ebx
jl 0x100776c5
jg 0x100776bc
cmp dword [ebp - 0x3c], ebx
jbe 0x100776c5
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x10], eax
sub dword [ebp + 0x28], eax
cmp dword [ebp - 0x50], ebx
jl 0x100776e7
jg 0x100776d1
cmp dword [ebp - 0x54], ebx
jbe 0x100776e7
mov eax, dword [ebp + 0x28]
cdq
cmp edx, dword [ebp - 0x50]
jl 0x100776e7
jg 0x100776e1
cmp eax, dword [ebp - 0x54]
jbe 0x100776e7
mov eax, dword [ebp - 0x54]
mov dword [ebp + 0x28], eax
cmp esi, ebx
mov dword [ebp + 0x18], ebx
je 0x10077739
cmp dword [ebp - 0x10], ebx
je 0x10077739
cmp dword [ebp + 0x28], ebx
jle 0x10077739
cmp dword [ebp - 0x64], ebx
jl 0x10077739
jg 0x10077704
cmp dword [ebp - 0x68], ebx
jb 0x10077739
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x68]
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x5c]
push dword [ebp + 0x28]
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x64]
push esi
push dword [ebp - 0x44]
call fcn.1004db0a
add esp, 0x3c
mov dword [ebp - 4], eax
mov dword [ebp], edx
lea ecx, [ebp + 0x38]
call fcn.10002d56
mov eax, dword [ebp - 0x94]
cmp word [eax], bx
je 0x10077121
mov ecx, dword [ebp + 0x3c]
push eax
push dword [ebp + 0x10]
call fcn.100457c2
mov ebx, dword [ebp + 0x18]
jmp 0x10077ab1
cmp esi, ebx
mov dword [ebp + 0x18], ebx
je 0x10077a33
cmp dword [ebp + 0x44], ebx
jl 0x10077a33
mov esi, dword [ebp + 0x40]
jg 0x10077785
cmp esi, ebx
jb 0x10077a33
cmp dword [ebp + 0x44], edi
jg 0x10077a33
jl 0x10077799
cmp esi, dword [ebp + 0x64]
ja 0x10077a33
cmp byte [ebp + 0x5c], bl
jne 0x100777b3
cmp edi, ebx
jl 0x10077a7c
jg 0x100777c7
cmp dword [ebp + 0x64], ebx
jbe 0x10077a7c
jmp 0x100777c7
cmp edi, ebx
jg 0x100777d2
jl 0x100777be
cmp dword [ebp + 0x64], ebx
jae 0x100777c7
or dword [ebp + 0x64], 0xffffffff
mov edi, 0x7fffffff
cmp edi, ebx
jl 0x100777f2
jg 0x100777d2
cmp dword [ebp + 0x64], ebx
jbe 0x100777f2
mov eax, dword [ebp + 0x64]
sub eax, esi
sbb edi, dword [ebp + 0x44]
cmp edi, dword [ebp + 0x4c]
jg 0x100777f2
jl 0x100777e6
cmp eax, dword [ebp + 0x48]
jae 0x100777f2
mov eax, dword [ebp + 0x64]
sub eax, esi
cdq
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], edx
cmp dword [ebp + 4], ebx
mov eax, dword [ebp + 0x48]
lea edi, [eax + eax*4 + 0xa]
jle 0x10077811
cdq
idiv dword [ebp + 4]
mov ecx, dword [ebp - 0x30]
add ecx, 2
inc eax
imul eax, ecx
add edi, eax
mov eax, dword [ebp + 0x48]
cmp byte [ebp + 0x6d], bl
je 0x1007781e
inc eax
cdq
sub eax, edx
mov edi, eax
sar edi, 1
lea eax, [edi + 4]
push eax
lea ecx, [ebp + 0x2c]
call fcn.10046168
cmp dword [ebp + 0x2c], ebx
jne 0x10077837
xor ebx, ebx
inc ebx
jmp 0x10077aa9
cmp byte [ebp + 0x6d], bl
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x78], eax
mov word [eax], bx
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x60], eax
je 0x10077858
mov ecx, dword [ebp + 0x48]
mov byte [ecx + eax], bl
mov eax, dword [ebp + 0x78]
mov word [eax + edi*2], bx
add esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
adc dword [ebp + 0x44], eax
cmp byte [ebp + 0x5c], bl
mov edi, dword [ebp + 0x44]
mov dword [ebp + 8], ebx
je 0x1007787c
mov eax, dword [ebp - 0x20]
cdq
push edx
push eax
push edi
push esi
call fcn.100b64f0
mov dword [ebp + 8], eax
movzx eax, word [ebp + 8]
cdq
sub esi, eax
push ebx
sbb edi, edx
push edi
push esi
push dword [ebp + 0x24]
call fcn.10040d01
mov eax, dword [ebp - 0x20]
add esp, 0x10
lea eax, [eax*4 + 0x100000]
push eax
lea ecx, [ebp - 0x24]
call fcn.10045fcc
cmp dword [ebp + 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
mov dword [ebp], ebx
mov dword [ebp + 0xc], ebx
jl 0x100779f0
jle 0x100779e7
movzx ecx, word [ebp + 8]
mov esi, 0x100000
sub esi, ecx
mov eax, esi
cdq
cmp edx, dword [ebp + 0x4c]
jl 0x100778de
jg 0x100778db
cmp eax, dword [ebp + 0x48]
jbe 0x100778de
mov esi, dword [ebp + 0x48]
cmp byte [ebp + 0x5c], bl
lea eax, [ecx + esi]
je 0x100778f5
mov edx, dword [ebp - 0x20]
lea eax, [eax + edx - 1]
cdq
idiv dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push ebx
lea edi, [ecx + edx]
lea ecx, [ebp - 0x44]
push ecx
push eax
push edx
push dword [ebp + 0x24]
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp + 0x6d], bl
mov dword [ebp + 8], ebx
je 0x10077934
push esi
push edi
push dword [ebp + 0x60]
call fcn.100144ff
add dword [ebp + 0x60], esi
mov eax, esi
cdq
add esp, 0xc
sub dword [ebp + 0x48], eax
sbb dword [ebp + 0x4c], edx
jmp 0x100779dc
dec esi
js 0x100779dc
inc esi
mov dword [ebp - 0x40], esi
cmp dword [ebp + 4], ebx
jle 0x100779a7
mov eax, dword [ebp + 4]
cdq
push edx
push eax
push dword [ebp]
push dword [ebp - 4]
call fcn.100b64f0
or eax, edx
jne 0x100779a7
cmp dword [ebp], ebx
jl 0x1007797d
jg 0x10077965
cmp dword [ebp - 4], ebx
jbe 0x1007797d
mov eax, dword [ebp + 0x78]
mov word [eax], 0xd
add dword [ebp + 0x78], 2
mov eax, dword [ebp + 0x78]
mov word [eax], 0xa
add dword [ebp + 0x78], 2
mov esi, dword [ebp - 0x30]
cmp esi, ebx
je 0x100779a7
push dword [ebp - 0x84]
push dword [ebp + 0xc]
push str._8X_s
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x78]
lea eax, [eax + esi*2]
add esp, 0x10
mov dword [ebp + 0x78], eax
movzx eax, byte [edi]
push eax
push 0x100cc278
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_wsprintfW]
add dword [ebp + 0x78], 0xa
add esp, 0xc
inc dword [ebp + 0xc]
add dword [ebp - 4], 1
adc dword [ebp], ebx
add dword [ebp + 0x48], 0xffffffff
adc dword [ebp + 0x4c], 0xffffffff
inc edi
dec dword [ebp - 0x40]
jne 0x1007793f
cmp dword [ebp + 0x4c], ebx
jg 0x100778c1
jl 0x100779f0
cmp dword [ebp + 0x48], ebx
ja 0x100778c1
mov ecx, dword [ebp + 0x2c]
cmp dword [ebp + 0x78], ecx
je 0x10077a0e
cmp byte [ebp + 0x6d], bl
je 0x10077a04
mov eax, dword [ebp + 0x60]
mov byte [eax], bl
jmp 0x10077a0e
sub dword [ebp + 0x78], 2
mov eax, dword [ebp + 0x78]
mov word [eax], bx
cmp byte [ebp + 0x6d], bl
je 0x10077a29
mov eax, dword [ebp + 0x60]
push 4
push ebx
push dword [ebp + 0x60]
sub eax, ecx
mov dword [ebp + 0x34], eax
call fcn.100b40f0
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.1003f96c
jmp 0x10077a77
cmp byte [ebp + 0x17], bl
jne 0x10077a64
cmp edi, ebx
jg 0x10077a55
jl 0x10077a43
cmp dword [ebp + 0x64], ebx
jae 0x10077a55
cmp byte [ebp + 0x6d], bl
jne 0x10077a64
push dword [ebp - 0x24]
lea ecx, [ebp + 0x2c]
call fcn.1005026c
jmp 0x10077a64
push edi
push dword [ebp + 0x64]
push dword [ebp + 0x2c]
call fcn.100a0e43
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10077a70
mov dword [ebp + 0x18], eax
jmp 0x10077a7c
mov dword [ebp + 0x18], 1
cmp dword [ebp + 0x34], ebx
jge 0x10077a8c
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x3c]
push dword [ebp + 0x10]
call fcn.100457c2
jmp 0x10077aa6
push 1
lea eax, [ebp + 0x2c]
push eax
push dword [ebp + 0x34]
push dword [ebp + 0x2c]
push dword [ebp + 0x10]
push dword [ebp + 0x3c]
call fcn.10053ed6
add esp, 0x18
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp + 0x38]
call fcn.10002d56
lea ecx, [ebp + 0x54]
call fcn.10002d56
lea ecx, [ebp + 0x58]
call fcn.1003f96c
lea ecx, [ebp - 0x2c]
call fcn.1000f660
lea ecx, [ebp - 0x94]
call fcn.1003f96c
lea ecx, [ebp + 0x2c]
call fcn.1003f96c
lea ecx, [ebp - 0x60]
call fcn.1003f96c
lea ecx, [ebp - 0x6c]
call fcn.1003f96c
lea ecx, [ebp - 0x4c]
call fcn.1003f96c
lea ecx, [ebp - 0x34]
call fcn.10002d56
lea ecx, [ebp - 0x70]
call fcn.1003f96c
lea ecx, [ebp + 0x20]
call fcn.1003f96c
lea ecx, [ebp - 0x48]
call fcn.1003f96c
lea ecx, [ebp - 0x18]
call fcn.1003f96c
lea ecx, [ebp + 0x50]
call fcn.1003f96c
lea ecx, [ebp - 0x9c]
call fcn.1003f96c
lea ecx, [ebp - 0x88]
call fcn.1003f96c
lea ecx, [ebp - 0x98]
call fcn.1003f96c
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x70
leave
ret 8