Function at 0x5b3884
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x25
push 0
push 0
dec ecx
jne 0x5b388d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x5b38a6
add esp, 0xfffffff0
call fcn.004041b8
mov esi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
call fcn.00405218
lea eax, [ebp - 0xa4]
mov edx, dword [0x5ab10c]
call fcn.0040587c
xor eax, eax
push ebp
push 0x5b4896
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
call fcn.005b1588
push ebp
push 0x5b4846
push dword fs:[0]
mov dword fs:[0], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x5b3919
mov edx, 0x5dc3d0
mov eax, 0x5dc3cc
call fcn.005ae59c
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], esi
test byte [ebp + 8], 0x20
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x34], al
test byte [ebp + 8], 0x40
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x35], al
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
lea edx, [ebp - 0xe4]
mov eax, 0x5b2e8c
call fcn.005ad7cc
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 0xf5a
call fcn.005b0d4c
mov ebx, eax
mov eax, dword [ebp - 4]
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 - 4]
mov eax, edi
mov dword [edx + 8], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov byte [ebp - 0x3d], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
xor ecx, ecx
mov eax, 0x5b48cc
call fcn.005b08c8
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, 0x5b48cc
mov cl, 1
call fcn.005b08c8
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x5b39fb
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0x80000000
jb 0x5b3a03
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00404e00
lea eax, [ebp - 0x20]
call fcn.00404d68
jmp 0x5b3a03
lea eax, [ebp - 0x20]
call fcn.00404d68
lea edx, [ebp - 0xec]
mov eax, 0x5b48d8
call fcn.005a9e48
push dword [ebp - 0xec]
push 0x5b48e8
push dword [ebp - 0x1c]
lea eax, [ebp - 0xe8]
mov edx, 3
call fcn.004050e8
mov eax, dword [ebp - 0xe8]
call fcn.00405228
push eax
call fcn.005b04cc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], 0
je 0x5b3a8f
lea edx, [ebp - 0xf4]
mov eax, 0x5b48d8
call fcn.005a9e48
push dword [ebp - 0xf4]
push 0x5b48e8
push dword [ebp - 0x20]
lea eax, [ebp - 0xf0]
mov edx, 3
call fcn.004050e8
mov eax, dword [ebp - 0xf0]
call fcn.00405228
push eax
call fcn.005b04cc
mov dword [ebp - 0x10], eax
jmp 0x5b3a94
xor eax, eax
mov dword [ebp - 0x10], eax
push ebp
push 0x5b4823
push dword fs:[0]
mov dword fs:[0], esp
cmp dword [ebp - 0xc], 0
je 0x5b3ab9
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp dword [ebp - 0x10], 0
je 0x5b3aca
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForSingleObject
push ebp
push 0x5b47f0
push dword fs:[0]
mov dword fs:[0], esp
push 0xffffffffffffffff
lea edx, [ebp - 0xfc]
mov eax, 0x5b48f4
call fcn.005a9e48
push dword [ebp - 0xfc]
push 0x5b48e8
push dword [ebp - 0x1c]
lea eax, [ebp - 0xf8]
mov edx, 3
call fcn.004050e8
mov eax, dword [ebp - 0xf8]
call fcn.00405228
push eax
call fcn.005b07d8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.005b35f0
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 5], al
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
je 0x5b3ba9
cmp dword [ebp - 0x20], 0
je 0x5b3ba9
push 0xffffffffffffffff
lea edx, [ebp - 0x104]
mov eax, 0x5b48f4
call fcn.005a9e48
push dword [ebp - 0x104]
push 0x5b48e8
push dword [ebp - 0x20]
lea eax, [ebp - 0x100]
mov edx, 3
call fcn.004050e8
mov eax, dword [ebp - 0x100]
call fcn.00405228
push eax
call fcn.005b07d8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.005b35f0
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 5], al
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
jne 0x5b3ba9
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00404e00
push ebp
push 0x5b47bd
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
je 0x5b4055
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x18]
mov eax, esi
call fcn.005b33c8
test al, al
je 0x5b3bfe
mov dword [ebp - 0x38], 0x770001
call fcn.00404790
call fcn.00404790
call fcn.00404790
call fcn.00404790
jmp 0x5b484d
test byte [ebp + 8], 2
jne 0x5b3c66
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, esi
call fcn.005b32cc
test al, al
je 0x5b3c1b
or dword [ebp + 8], 2
jmp 0x5b3c66
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.005ad7cc
cmp byte [ebp - 0xa4], 0
je 0x5b3c3b
cmp byte [ebp - 0x7c], 0
jne 0x5b3c41
or dword [ebp + 8], 2
jmp 0x5b3c66
cmp byte [0x5dc364], 0
jne 0x5b3c66
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, esi
call fcn.005b3738
test al, al
je 0x5b3c66
or dword [ebp + 8], 2
mov dword [ebp - 0x38], 0x770004
test byte [ebp + 8], 2
jne 0x5b3ca6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, esi
call fcn.005b3574
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b4065
cmp dword [ebp - 0x20], 0
je 0x5b4065
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00404e00
jmp 0x5b4065
test byte [ebp + 8], 0x10
jne 0x5b4035
test esi, esi
je 0x5b3d23
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x5b3cfc
lea edx, [ebp - 0x10c]
mov eax, 0x5b4908
call fcn.005a9e48
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x108]
mov dl, 1
call fcn.005a9eb8
mov eax, dword [ebp - 0x108]
push eax
call sub.kernel32.dll_GetModuleHandleW
cmp esi, eax
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x36], al
jmp 0x5b3d23
mov eax, 0x5b4908
lea edx, [ebp - 0x110]
call fcn.005a9e48
mov eax, dword [ebp - 0x110]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
cmp esi, eax
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x36], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x36], 0
je 0x5b3d3d
test byte [ebp + 8], 0x80
je 0x5b3d3d
mov eax, esi
call fcn.005b0dd8
mov ebx, eax
jmp 0x5b3d3f
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x36], 0
je 0x5b3d50
test ebx, ebx
je 0x5b4015
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x5b3d80
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0x80000000
jae 0x5b3d84
test esi, esi
je 0x5b3d80
mov eax, esi
call fcn.005aa6a4
mov edx, eax
mov eax, esi
call fcn.005b3574
test al, al
jne 0x5b3d84
xor eax, eax
jmp 0x5b3d86
mov al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b3db4
cmp dword [ebp - 0x20], 0
je 0x5b3da6
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00404e00
push 0
push 0xa
call fcn.005ae65c
mov dword [ebp - 0x2c], eax
jmp 0x5b3dc1
mov eax, 0xa
call fcn.005b0d4c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov byte [eax], 0xff
mov eax, dword [ebp - 0x2c]
mov byte [eax + 1], 0x25
mov eax, dword [ebp - 0x2c]
add eax, 6
mov edx, dword [ebp - 0x2c]
mov dword [edx + 2], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 6], eax
mov eax, dword [0x5dcf94]
mov dword [eax], fcn.005b0af8
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, 0x5b491c
call fcn.005b08c8
push 4
lea edx, [ebp - 0x118]
mov eax, 0x5b48f4
call fcn.005a9e48
push dword [ebp - 0x118]
push 0x5b48e8
push dword [ebp - 0x24]
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.004050e8
mov eax, dword [ebp - 0x114]
call fcn.00405228
push eax
call fcn.005b06b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5b3e93
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5b3e85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
jmp 0x5b3e93
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5b3fba
push ebx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2c]
mov eax, esi
call fcn.005b0f28
test al, al
jne 0x5b3ed3
call fcn.005b1138
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
jne 0x5b3fba
mov eax, dword [ebp - 0x2c]
call fcn.005b115c
test al, al
je 0x5b3fba
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b3f14
mov eax, dword [ebp - 0x14]
call fcn.005ae54c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.005b1138
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
je 0x5b3f14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x2c]
call fcn.005b11b4
test byte [ebp + 8], 4
setne al
call fcn.005b15d4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x36], 0
je 0x5b3f76
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x5b3f5a
mov eax, 0x5b4908
lea edx, [ebp - 0x120]
call fcn.005a9e48
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov dl, 1
call fcn.005a9eb8
mov eax, dword [ebp - 0x11c]
push eax
call sub.kernel32.dll_LoadLibraryW
jmp 0x5b3f76
mov eax, 0x5b4908
lea edx, [ebp - 0x124]
call fcn.005a9e48
mov eax, dword [ebp - 0x124]
push eax
call sub.kernel32.dll_LoadLibraryA
xor eax, eax
push ebp
push 0x5b3f9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x2c]
call fcn.005b1110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b3fa6
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x3d], 1
xor eax, eax
mov dword [ebp - 0x38], eax
jmp 0x5b4065
cmp dword [ebp - 0x14], 0
je 0x5b3fc9
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b3fdf
push 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.005ae774
jmp 0x5b3fef
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_VirtualFree_1
cmp dword [ebp - 0x38], 0
jne 0x5b3ffc
mov dword [ebp - 0x38], 0x770002
call fcn.00404790
call fcn.00404790
call fcn.00404790
call fcn.00404790
jmp 0x5b484d
mov dword [ebp - 0x38], 0x770002
call fcn.00404790
call fcn.00404790
call fcn.00404790
call fcn.00404790
jmp 0x5b484d
mov dword [ebp - 0x38], 0x770002
call fcn.00404790
call fcn.00404790
call fcn.00404790
call fcn.00404790
jmp 0x5b484d
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 5], 0x53
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b4074
test byte [ebp + 8], 4
jne 0x5b4078
xor eax, eax
jmp 0x5b407a
mov al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x24], al
test al, al
je 0x5b4252
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0x80000000
jae 0x5b41a5
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
lea eax, [ebp - 0xa4]
push eax
test byte [ebp + 8], 8
setne cl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
xor edx, edx
call fcn.005aea30
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x5b40e9
mov dword [ebp - 0x38], 0x770003
call fcn.00404790
call fcn.00404790
call fcn.00404790
call fcn.00404790
jmp 0x5b484d
mov eax, dword [ebp - 0x84]
call fcn.00406374
mov esi, eax
test esi, esi
jl 0x5b418b
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x84]
lea ecx, [edx + eax*4]
cmp byte [ecx + 0x10], 0
jne 0x5b4183
cmp dword [ecx + 0x18], 0
je 0x5b4183
mov eax, dword [ecx + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x14]
jne 0x5b4183
mov eax, dword [ecx + 0x18]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x9c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
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 - 0x34], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x24], 0
jne 0x5b4172
mov edx, 4
mov eax, dword [ebp - 0x34]
call fcn.005ae998
test al, al
je 0x5b4183
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x34]
mov dword [edx], eax
inc ebx
dec esi
jne 0x5b4101
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x98]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
jmp 0x5b4252
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.005ad7cc
cmp byte [ebp - 0xa4], 0
jne 0x5b41df
mov dword [ebp - 0x38], 0x770003
call fcn.00404790
call fcn.00404790
call fcn.00404790
call fcn.00404790
jmp 0x5b484d
mov eax, dword [ebp - 0x84]
call fcn.00406374
mov esi, eax
test esi, esi
jl 0x5b4252
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x84]
lea edi, [edx + eax*4]
cmp byte [edi + 0x10], 0
jne 0x5b424e
cmp dword [edi + 0x18], 0
je 0x5b424e
mov eax, dword [edi + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x14]
jne 0x5b424e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x5b4243
push 0
push 4
call fcn.005ae65c
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [edi + 0x18]
mov dword [edx], eax
inc ebx
dec esi
jne 0x5b41f3
xor eax, eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
push ebp
push 0x5b4787
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
je 0x5b449a
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b428c
push 0
push 0x22
call fcn.005ae65c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
jmp 0x5b42b9
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x5b42a9
push 0x22
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
jmp 0x5b42b9
mov eax, 0x22
call fcn.005b0d4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x38]
lea edx, [ebp - 0x64]
mov eax, ebx
call fcn.005ac574
cmp byte [ebp - 0x5d], 0
je 0x5b433b
cmp dword [ebp - 0x50], 1
jne 0x5b42fa
cmp word [ebp - 0x62], 0xeb
je 0x5b42f2
mov byte [esi], 0xf
mov al, byte [ebp - 0x62]
and al, 0xf
add al, 0x80
mov byte [esi + 1], al
add esi, 6
jmp 0x5b432d
mov byte [esi], 0xe9
add esi, 5
jmp 0x5b432d
cmp dword [ebp - 0x50], 2
jne 0x5b431b
mov edi, dword [ebp - 0x44]
sub edi, ebx
mov ecx, edi
sub ecx, 3
mov edx, esi
mov eax, ebx
inc eax
call fcn.00402a78
add edi, esi
inc edi
mov esi, edi
jmp 0x5b432d
mov edi, dword [ebp - 0x44]
sub edi, ebx
mov edx, esi
mov eax, ebx
mov ecx, edi
call fcn.00402a78
add esi, edi
mov edx, dword [ebp - 0x5c]
mov eax, esi
sub edx, eax
sub eax, 4
mov dword [eax], edx
jmp 0x5b434d
mov edi, dword [ebp - 0x44]
sub edi, ebx
mov edx, esi
mov eax, ebx
mov ecx, edi
call fcn.00402a78
add esi, edi
mov ebx, dword [ebp - 0x44]
mov eax, ebx
sub eax, dword [ebp - 0x30]
cmp eax, 6
jb 0x5b42c2
mov byte [esi], 0xe9
add esi, 5
sub ebx, esi
sub esi, 4
mov dword [esi], ebx
push 4
lea edx, [ebp - 0x12c]
mov eax, 0x5b48f4
call fcn.005a9e48
push dword [ebp - 0x12c]
push 0x5b48e8
push dword [ebp - 0x1c]
lea eax, [ebp - 0x128]
mov edx, 3
call fcn.004050e8
mov eax, dword [ebp - 0x128]
call fcn.00405228
push eax
call fcn.005b06b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5b454f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b43ca
mov eax, dword [ebp - 0x14]
call fcn.005ae54c
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5b454f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b4404
push 0
push 0x5c
call fcn.005ae65c
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
jmp 0x5b4413
mov eax, 0x5c
call fcn.005b0d4c
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax], 2
mov dword [eax + 4], 8
mov edx, dword [ebp - 0x30]
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 - 4]
mov edx, dword [edx + 0x38]
add edx, 0x1e
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
mov ecx, dword [eax + 0x18]
mov dword [ecx], edx
mov edx, dword [ebp - 4]
cmp byte [edx + 0xc], 0
jne 0x5b4471
cmp byte [ebp - 0x3d], 0
jne 0x5b4471
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
jmp 0x5b4476
xor edx, edx
mov dword [eax + 8], edx
xor edx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
add edx, 0x1e
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x28], edx
jmp 0x5b454f
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
mov eax, dword [esi]
mov eax, dword [esi + eax*8 + 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi]
jne 0x5b454f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b44ed
push 0
mov eax, dword [esi + 4]
add eax, eax
shl eax, 3
add eax, 0x1c
push eax
call fcn.005ae65c
mov ebx, eax
jmp 0x5b44ff
mov eax, dword [esi + 4]
add eax, eax
shl eax, 3
add eax, 0x1c
call fcn.005b0d4c
mov ebx, eax
mov ecx, dword [esi + 4]
shl ecx, 3
add ecx, 0x1c
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00402a78
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b453f
push 0
mov eax, dword [ebp - 0x28]
push eax
call fcn.005ae774
jmp 0x5b454f
push 0x8000
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x24], 0
jne 0x5b46c7
test byte [ebp + 8], 1
jne 0x5b4627
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
add eax, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 4]
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 0x5b4577
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
add eax, 0xf50
mov ebx, eax
mov edx, ebx
mov eax, 0x5b2e8c
mov ecx, dword [ebp - 0x3c]
call fcn.00402a78
mov eax, dword [ebp - 0x3c]
push eax
push 0
push 0
push 0x7fffffff
mov eax, 0x5b4920
mov ecx, 4
mov edx, ebx
call fcn.005a9334
add eax, ebx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
push eax
push 0
push 0
push 0x7fffffff
mov eax, 0x5b4928
mov ecx, 4
mov edx, ebx
call fcn.005a9334
add eax, ebx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
sub edx, ebx
sub edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x5b46c7
push 0
push 0x22
call fcn.005ae65c
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edi, eax
mov esi, 0x5dc470
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dl, 1
mov eax, 0x5b4938
call fcn.005ad898
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
inc edx
add edx, 5
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov dword [edx + 2], eax
call sub.kernel32.dll_GetCurrentProcessId
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x1c]
mov dword [ebx + 7], eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
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 - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcessId
push eax
call sub.kernel32.dll_GetCurrentProcess
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
pop edx
call fcn.005b2a1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], edx
mov edx, dword [ebp - 4]
mov ecx, dword [eax + 0x16]
mov dword [edx + 0x40], ecx
mov cx, word [eax + 0x1a]
mov word [edx + 0x44], 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 - 4]
cmp byte [edx + 0xc], 0
je 0x5b4726
mov edx, dword [ebp - 4]
cmp byte [edx + 0x24], 0
jne 0x5b4726
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + edx*8 + 0x14], ecx
jmp 0x5b4732
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov dword [eax + edx*8 + 0x14], ecx
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
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 - 4]
mov byte [eax + 4], 1
mov eax, dword [ebp - 4]
call fcn.005b4ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b478e
cmp dword [ebp - 0x18], 0
je 0x5b4786
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b489d
lea eax, [ebp - 0x12c]
mov edx, 0x12
call fcn.00404d8c
lea eax, [ebp - 0xe4]
mov edx, dword [0x5ab10c]
mov ecx, 2
call fcn.00405998
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404d8c
lea eax, [ebp + 0x18]
call fcn.00404d68
ret