Function at 0x412e04
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x25
push 0
push 0
dec ecx
jne 0x412e0d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x412e27
add esp, 0xfffffff0
call fcn.00403b70
mov esi, ecx
mov byte [ebp - 0x51], dl
mov dword [ebp - 0x50], eax
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
call fcn.00404c20
lea eax, [ebp - 0x4c]
mov edx, dword [0x40941c]
call fcn.00405388
xor eax, eax
push ebp
push 0x413ea6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x50]
xor edx, edx
mov dword [eax + 0x20], edx
call fcn.00410b64
push ebp
push 0x413e4d
push dword fs:[0]
mov dword fs:[0], esp
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x412e97
mov edx, 0x427624
mov eax, 0x427620
call fcn.0040ccc0
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x30], esi
test byte [ebp + 8], 0x20
setne al
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x34], al
test byte [ebp + 8], 0x40
setne al
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x35], al
test byte [ebp + 9], 1
setne al
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x36], al
mov eax, dword [ebp - 0x50]
xor edx, edx
mov dword [eax + 0x28], edx
lea edx, [ebp - 0xe8]
mov eax, 0x41243c
call fcn.0040bba4
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
add eax, 0xf5a
call fcn.0041036c
mov ebx, eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x20], ebx
mov byte [ebx], 0xff
mov byte [ebx + 1], 0x25
lea eax, [ebx + 6]
mov dword [ebx + 2], eax
mov edx, dword [ebp - 0x50]
mov eax, edi
mov dword [edx + 8], eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x14], eax
mov byte [ebp - 0x7d], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 8]
xor ecx, ecx
mov eax, dword [0x427530]
call fcn.0040ff4c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 8]
mov cl, 1
mov eax, dword [0x427530]
call fcn.0040ff4c
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x412f86
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 0x80000000
jb 0x412f8e
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040485c
lea eax, [ebp - 8]
call fcn.004047c4
jmp 0x412f8e
lea eax, [ebp - 8]
call fcn.004047c4
lea edx, [ebp - 0xf0]
mov eax, dword [0x427510]
call fcn.00407f58
push dword [ebp - 0xf0]
push 0x413edc
push dword [ebp - 4]
lea eax, [ebp - 0xec]
mov edx, 3
call fcn.00404b34
mov eax, dword [ebp - 0xec]
call fcn.00404c30
push eax
call fcn.0040fa90
mov dword [ebp - 0x58], eax
cmp dword [ebp - 8], 0
je 0x41301a
lea edx, [ebp - 0xf8]
mov eax, dword [0x427510]
call fcn.00407f58
push dword [ebp - 0xf8]
push 0x413edc
push dword [ebp - 8]
lea eax, [ebp - 0xf4]
mov edx, 3
call fcn.00404b34
mov eax, dword [ebp - 0xf4]
call fcn.00404c30
push eax
call fcn.0040fa90
mov dword [ebp - 0x5c], eax
jmp 0x41301f
xor eax, eax
mov dword [ebp - 0x5c], eax
push ebp
push 0x413e2a
push dword fs:[0]
mov dword fs:[0], esp
cmp dword [ebp - 0x58], 0
je 0x413044
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp dword [ebp - 0x5c], 0
je 0x413055
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push ebp
push 0x413df7
push dword fs:[0]
mov dword fs:[0], esp
push 0xffffffffffffffff
lea edx, [ebp - 0x100]
mov eax, dword [0x427528]
call fcn.00407f58
push dword [ebp - 0x100]
push 0x413edc
push dword [ebp - 4]
lea eax, [ebp - 0xfc]
mov edx, 3
call fcn.00404b34
mov eax, dword [ebp - 0xfc]
call fcn.00404c30
push eax
call fcn.0040ff38
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
call fcn.00412db4
xor al, 1
mov edx, dword [ebp - 0x50]
mov byte [edx + 5], al
mov eax, dword [ebp - 0x50]
cmp byte [eax + 5], 0
je 0x413134
cmp dword [ebp - 8], 0
je 0x413134
push 0xffffffffffffffff
lea edx, [ebp - 0x108]
mov eax, dword [0x427528]
call fcn.00407f58
push dword [ebp - 0x108]
push 0x413edc
push dword [ebp - 8]
lea eax, [ebp - 0x104]
mov edx, 3
call fcn.00404b34
mov eax, dword [ebp - 0x104]
call fcn.00404c30
push eax
call fcn.0040ff38
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
call fcn.00412db4
xor al, 1
mov edx, dword [ebp - 0x50]
mov byte [edx + 5], al
mov eax, dword [ebp - 0x50]
cmp byte [eax + 5], 0
jne 0x413134
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040485c
push ebp
push 0x413dc4
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 0x50]
cmp byte [eax + 5], 0
je 0x4135e7
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x18]
mov eax, esi
call fcn.0041293c
test al, al
je 0x413189
mov dword [ebp - 0x78], 0x770001
call fcn.00404230
call fcn.00404230
call fcn.00404230
call fcn.00404230
jmp 0x413e54
test byte [ebp + 8], 2
jne 0x4131f7
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 8]
mov eax, esi
call fcn.0041287c
test al, al
je 0x4131a6
or dword [ebp + 8], 2
jmp 0x4131f7
test byte [ebp + 0xb], 0x80
jne 0x4131f7
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
call fcn.0040bba4
cmp byte [ebp - 0x4c], 0
je 0x4131c6
cmp byte [ebp - 0x24], 0
jne 0x4131cc
or dword [ebp + 8], 2
jmp 0x4131f7
cmp byte [0x427388], 0
jne 0x4131f7
lea ecx, [ebp - 0x83]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 8]
mov eax, esi
call fcn.00412c44
test al, al
je 0x4131f7
or dword [ebp + 8], 2
mov dword [ebp - 0x78], 0x770004
test byte [ebp + 8], 2
jne 0x413237
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 8]
mov eax, esi
call fcn.00412ad4
mov edx, dword [ebp - 0x50]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x4135f7
cmp dword [ebp - 8], 0
je 0x4135f7
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040485c
jmp 0x4135f7
test byte [ebp + 8], 0x10
jne 0x4135c7
test esi, esi
je 0x4132b4
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x41328d
lea edx, [ebp - 0x110]
mov eax, dword [0x4274f0]
call fcn.00407f58
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x10c]
mov dl, 1
call fcn.00407f8c
mov eax, dword [ebp - 0x10c]
push eax
call sub.kernel32.dll_GetModuleHandleW
cmp esi, eax
sete al
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x37], al
jmp 0x4132b4
lea edx, [ebp - 0x114]
mov eax, dword [0x4274f0]
call fcn.00407f58
mov eax, dword [ebp - 0x114]
push eax
call sub.kernel32.dll_GetModuleHandleA_1
cmp esi, eax
sete al
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x37], al
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0x37], 0
je 0x4132ce
test byte [ebp + 8], 0x80
je 0x4132ce
mov eax, esi
call fcn.004103e8
mov ebx, eax
jmp 0x4132d0
xor ebx, ebx
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0x37], 0
je 0x4132e1
test ebx, ebx
je 0x4135a7
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x413311
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 0x80000000
jae 0x413315
test esi, esi
je 0x413311
mov eax, esi
call fcn.00408978
mov edx, eax
mov eax, esi
call fcn.00412ad4
test al, al
jne 0x413315
xor eax, eax
jmp 0x413317
mov al, 1
mov edx, dword [ebp - 0x50]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x413345
cmp dword [ebp - 8], 0
je 0x413337
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040485c
push 0
push 0xa
call fcn.0040cd68
mov dword [ebp - 0x6c], eax
jmp 0x413352
mov eax, 0xa
call fcn.0041036c
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov byte [eax], 0xff
mov eax, dword [ebp - 0x6c]
mov byte [eax + 1], 0x25
mov eax, dword [ebp - 0x6c]
add eax, 6
mov edx, dword [ebp - 0x6c]
mov dword [edx + 2], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 6], eax
mov eax, dword [0x427c0c]
mov dword [eax], fcn.00410138
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax + 0xc]
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x42752c]
call fcn.0040ff4c
push 4
lea edx, [ebp - 0x11c]
mov eax, dword [0x427528]
call fcn.00407f58
push dword [ebp - 0x11c]
push 0x413edc
push dword [ebp - 0xc]
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.00404b34
mov eax, dword [ebp - 0x118]
call fcn.00404c30
push eax
call fcn.0040fbd0
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x413425
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x413417
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x64]
mov dword [edx], eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_UnmapViewOfFile
jmp 0x413425
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x41354c
push ebx
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x6c]
mov eax, esi
call fcn.00410544
test al, al
jne 0x413465
call fcn.00410754
mov edx, dword [ebp - 0x50]
cmp eax, dword [edx + 8]
jne 0x41354c
mov eax, dword [ebp - 0x6c]
call fcn.00410778
test al, al
je 0x41354c
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x4134a6
mov eax, dword [ebp - 0x60]
call fcn.0040cc70
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.00410754
mov edx, dword [ebp - 0x50]
cmp eax, dword [edx + 8]
je 0x4134a6
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x6c]
call fcn.004107d0
test byte [ebp + 8], 4
setne al
call fcn.00410bb0
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0x37], 0
je 0x413508
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4134ec
lea edx, [ebp - 0x124]
mov eax, dword [0x4274f0]
call fcn.00407f58
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x120]
mov dl, 1
call fcn.00407f8c
mov eax, dword [ebp - 0x120]
push eax
call sub.kernel32.dll_LoadLibraryW
jmp 0x413508
lea edx, [ebp - 0x128]
mov eax, dword [0x4274f0]
call fcn.00407f58
mov eax, dword [ebp - 0x128]
push eax
call sub.kernel32.dll_LoadLibraryA
xor eax, eax
push ebp
push 0x41352e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x6c]
call fcn.0041072c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413538
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x7d], 1
xor eax, eax
mov dword [ebp - 0x78], eax
jmp 0x4135f7
cmp dword [ebp - 0x60], 0
je 0x41355b
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x413571
push 0
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0040ce50
jmp 0x413581
push 0x8000
push 0
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_VirtualFree_1
cmp dword [ebp - 0x78], 0
jne 0x41358e
mov dword [ebp - 0x78], 0x770002
call fcn.00404230
call fcn.00404230
call fcn.00404230
call fcn.00404230
jmp 0x413e54
mov dword [ebp - 0x78], 0x770002
call fcn.00404230
call fcn.00404230
call fcn.00404230
call fcn.00404230
jmp 0x413e54
mov dword [ebp - 0x78], 0x770002
call fcn.00404230
call fcn.00404230
call fcn.00404230
call fcn.00404230
jmp 0x413e54
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0x53
sete al
mov edx, dword [ebp - 0x50]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x413606
test byte [ebp + 8], 4
jne 0x41360a
xor eax, eax
jmp 0x41360c
mov al, 1
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x24], al
test al, al
je 0x4137c8
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x10], 0x80000000
jae 0x413724
mov eax, dword [ebp - 0x50]
add eax, 0x18
push eax
lea eax, [ebp - 0x4c]
push eax
test byte [ebp + 8], 8
setne cl
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x10]
xor edx, edx
call fcn.0040d0b0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x10], 0
jne 0x413678
mov dword [ebp - 0x78], 0x770003
call fcn.00404230
call fcn.00404230
call fcn.00404230
call fcn.00404230
jmp 0x413e54
mov eax, dword [ebp - 0x2c]
call fcn.00405810
mov esi, eax
test esi, esi
jl 0x41370d
inc esi
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x2c]
lea ecx, [edx + eax*4]
cmp byte [ecx + 0x10], 0
jne 0x413709
cmp dword [ecx + 0x18], 0
je 0x413709
mov eax, dword [ecx + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 0x50]
cmp eax, dword [edx + 0x14]
jne 0x413709
mov eax, dword [ecx + 0x18]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x44]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x18]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0x24], 0
jne 0x4136fb
mov edx, 4
mov eax, dword [ebp - 0x74]
call fcn.0040d018
test al, al
je 0x413709
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x74]
mov dword [edx], eax
inc ebx
dec esi
jne 0x41368d
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
jmp 0x4137c8
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x10]
call fcn.0040bba4
cmp byte [ebp - 0x4c], 0
jne 0x413758
mov dword [ebp - 0x78], 0x770003
call fcn.00404230
call fcn.00404230
call fcn.00404230
call fcn.00404230
jmp 0x413e54
mov eax, dword [ebp - 0x2c]
call fcn.00405810
mov esi, eax
test esi, esi
jl 0x4137c8
inc esi
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x2c]
lea edi, [edx + eax*4]
cmp byte [edi + 0x10], 0
jne 0x4137c4
cmp dword [edi + 0x18], 0
je 0x4137c4
mov eax, dword [edi + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 0x50]
cmp eax, dword [edx + 0x14]
jne 0x4137c4
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x18], 0
jne 0x4137b9
push 0
push 4
call fcn.0040cd68
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x18]
mov edx, dword [edi + 0x18]
mov dword [edx], eax
inc ebx
dec esi
jne 0x413769
xor eax, eax
mov dword [ebp - 0x64], eax
xor ecx, ecx
push ebp
push 0x413d8e
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x50]
cmp byte [eax + 5], 0
je 0x413a32
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x413802
push 0
push 0x22
call fcn.0040cd68
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x38], eax
jmp 0x41382f
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x41381f
push 0x22
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x38], eax
jmp 0x41382f
mov eax, 0x22
call fcn.0041036c
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x38], eax
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 0x38]
lea edx, [ebp - 0xa8]
mov eax, ebx
call fcn.0040a938
cmp byte [ebp - 0xa1], 0
je 0x4138cd
cmp dword [ebp - 0x94], 1
jne 0x413880
cmp word [ebp - 0xa6], 0xeb
je 0x413878
mov byte [esi], 0xf
movzx eax, byte [ebp - 0xa6]
and al, 0xf
add al, 0x80
mov byte [esi + 1], al
add esi, 6
jmp 0x4138bc
mov byte [esi], 0xe9
add esi, 5
jmp 0x4138bc
cmp dword [ebp - 0x94], 2
jne 0x4138a7
mov edi, dword [ebp - 0x88]
sub edi, ebx
mov ecx, edi
sub ecx, 3
mov edx, esi
mov eax, ebx
inc eax
call fcn.00402f98
add edi, esi
inc edi
mov esi, edi
jmp 0x4138bc
mov edi, dword [ebp - 0x88]
sub edi, ebx
mov edx, esi
mov eax, ebx
mov ecx, edi
call fcn.00402f98
add esi, edi
mov edx, dword [ebp - 0xa0]
mov eax, esi
sub edx, eax
sub eax, 4
mov dword [eax], edx
jmp 0x4138e2
mov edi, dword [ebp - 0x88]
sub edi, ebx
mov edx, esi
mov eax, ebx
mov ecx, edi
call fcn.00402f98
add esi, edi
mov ebx, dword [ebp - 0x88]
mov eax, ebx
sub eax, dword [ebp - 0x70]
cmp eax, 6
jb 0x413838
mov byte [esi], 0xe9
add esi, 5
sub ebx, esi
sub esi, 4
mov dword [esi], ebx
push 4
lea edx, [ebp - 0x130]
mov eax, dword [0x427528]
call fcn.00407f58
push dword [ebp - 0x130]
push 0x413edc
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404b34
mov eax, dword [ebp - 0x12c]
call fcn.00404c30
push eax
call fcn.0040fbd0
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x413af0
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x413962
mov eax, dword [ebp - 0x60]
call fcn.0040cc70
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x413af0
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x41399c
push 0
push 0x5c
call fcn.0040cd68
mov edx, dword [ebp - 0x64]
mov dword [edx], eax
jmp 0x4139ab
mov eax, 0x5c
call fcn.0041036c
mov edx, dword [ebp - 0x64]
mov dword [edx], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov dword [eax], 2
mov dword [eax + 4], 8
mov edx, dword [ebp - 0x70]
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dword [eax + 0x10], ecx
mov cx, word [edx + 4]
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0xff
mov byte [eax + 0x17], 0x25
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x38]
add edx, 0x1e
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x38]
mov ecx, dword [eax + 0x18]
mov dword [ecx], edx
mov edx, dword [ebp - 0x50]
cmp byte [edx + 0xc], 0
jne 0x413a09
cmp byte [ebp - 0x7d], 0
jne 0x413a09
mov edx, dword [ebp - 0x60]
mov dword [eax + 8], edx
jmp 0x413a0e
xor edx, edx
mov dword [eax + 8], edx
xor edx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x38]
add edx, 0x1e
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x38]
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x28], edx
jmp 0x413af0
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov esi, dword [eax]
mov eax, dword [esi]
mov eax, dword [esi + eax*8 + 0x14]
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x38], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi]
jne 0x413af0
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x413a88
push 0
mov eax, dword [esi + 4]
add eax, eax
add eax, eax
add eax, eax
add eax, eax
add eax, 0x1c
push eax
call fcn.0040cd68
mov ebx, eax
jmp 0x413a9d
mov eax, dword [esi + 4]
add eax, eax
add eax, eax
add eax, eax
add eax, eax
add eax, 0x1c
call fcn.0041036c
mov ebx, eax
mov ecx, dword [esi + 4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, 0x1c
mov edx, ebx
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
call fcn.00402f98
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [eax], ebx
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x413ae0
push 0
mov eax, dword [ebp - 0x68]
push eax
call fcn.0040ce50
jmp 0x413af0
push 0x8000
push 0
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0x24], 0
jne 0x413c6d
test byte [ebp + 8], 1
jne 0x413bcb
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x20]
add eax, 0xa
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x28], eax
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x28]
lea eax, [edx + eax*2]
mov byte [eax], 0x68
xor edx, edx
mov dword [eax + 1], edx
mov byte [eax + 5], 0xf0
mov word [eax + 6], 0x2583
lea edx, [eax + 1]
mov dword [eax + 8], edx
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0xc3
inc ebx
cmp ebx, 0x118
jne 0x413b18
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x28]
add eax, 0xf50
mov ebx, eax
mov edx, ebx
mov eax, 0x41243c
mov ecx, dword [ebp - 0x7c]
call fcn.00402f98
mov eax, dword [ebp - 0x7c]
push eax
push 0
push 0
push 0x7fffffff
mov eax, 0x413ee0
mov ecx, 4
mov edx, ebx
call fcn.004070ac
add eax, ebx
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x28]
mov dword [eax], edx
mov eax, dword [ebp - 0x7c]
push eax
push 0
push 0
push 0x7fffffff
mov eax, 0x413ee8
mov ecx, 4
mov edx, ebx
call fcn.004070ac
add eax, ebx
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x10]
sub edx, ebx
sub edx, dword [ebp - 0x7c]
mov dword [eax], edx
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 0x50]
cmp byte [eax + 0xc], 0
je 0x413c6d
push 0
push 0x22
call fcn.0040cd68
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x1c]
mov edi, eax
mov esi, 0x4276cc
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [0x427b50]
mov eax, dword [eax]
mov dl, 1
call fcn.0040bcf0
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x1c]
inc edx
add edx, 5
sub eax, edx
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x1c]
mov dword [edx + 2], eax
call sub.kernel32.dll_GetCurrentProcessId
mov edx, dword [ebp - 0x50]
mov ebx, dword [edx + 0x1c]
mov dword [ebx + 7], eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x1e]
mov dword [ebx + 0x1a], eax
lea eax, [ebx + 0x1e]
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcessId
push eax
call sub.kernel32.dll_GetCurrentProcess
mov edx, dword [ebp - 0x50]
mov ecx, dword [edx + 8]
pop edx
call fcn.00412014
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x3c], edx
mov edx, dword [ebp - 0x50]
mov ecx, dword [eax + 0x16]
mov dword [edx + 0x40], ecx
mov cx, word [eax + 0x1a]
mov word [edx + 0x44], cx
mov edx, dword [ebp - 0x50]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x46], ecx
mov cx, word [eax + 0x14]
mov word [edx + 0x4a], cx
mov edx, dword [eax]
mov ecx, dword [eax + edx*8 + 0x14]
mov dword [eax + edx*8 + 0x1c], ecx
mov ecx, dword [eax + edx*8 + 0x18]
mov dword [eax + edx*8 + 0x20], ecx
mov edx, dword [ebp - 0x50]
cmp byte [edx + 0xc], 0
je 0x413cdd
mov edx, dword [ebp - 0x50]
cmp byte [edx + 0x24], 0
jne 0x413cdd
mov edx, dword [eax]
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + edx*8 + 0x14], ecx
jmp 0x413ce9
mov edx, dword [eax]
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 0x10]
mov dword [eax + edx*8 + 0x14], ecx
mov edx, dword [eax]
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 0x20]
mov ecx, dword [ecx + 2]
mov dword [eax + edx*8 + 0x18], ecx
mov edx, dword [eax]
mov ecx, dword [eax + edx*8 + 0x1c]
mov edx, dword [eax + edx*8 + 0x18]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + edx*8 + 0x14]
mov edx, dword [eax + edx*8 + 0x10]
mov dword [edx], ecx
inc dword [eax]
mov eax, dword [ebp - 0x50]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0x50]
cmp byte [eax + 5], 0
jne 0x413d69
cmp byte [0x42738c], 0
jne 0x413d69
push 6
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x413d71
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x50]
add edx, 0x46
cmp eax, dword [edx]
jne 0x413d71
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x3c]
add eax, 4
movzx eax, word [eax]
mov edx, dword [ebp - 0x50]
add edx, 0x46
add edx, 4
cmp ax, word [edx]
jne 0x413d71
mov eax, dword [ebp - 0x50]
call fcn.004144b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d95
cmp dword [ebp - 0x64], 0
je 0x413d8d
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413ead
lea eax, [ebp - 0x130]
mov edx, 0x12
call fcn.004047e8
lea eax, [ebp - 0xe8]
mov edx, dword [0x40941c]
call fcn.0040544c
lea eax, [ebp - 0x4c]
mov edx, dword [0x40941c]
call fcn.0040544c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004047e8
lea eax, [ebp + 0x18]
call fcn.004047c4
ret