Function at 0x4a4d80
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x505c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x24], 0
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, eax
sub ecx, esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], edx
test ecx, 0xfffffffc
je 0x4a5489
cmp esi, eax
jbe 0x4a4e05
call fcn.004e48f7
mov edi, dword [ebx]
mov dword [esp + 0x38], esi
jmp 0x4a4e10
mov esi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], esi
jbe 0x4a4e1d
call fcn.004e48f7
mov eax, dword [ebx]
test edi, edi
je 0x4a4e27
cmp edi, eax
je 0x4a4e2c
call fcn.004e48f7
cmp dword [esp + 0x38], esi
je 0x4a4e56
test edi, edi
jne 0x4a4e52
call fcn.004e48f7
xor eax, eax
mov edx, dword [esp + 0x38]
cmp edx, dword [eax + 0x10]
jb 0x4a4e4b
call fcn.004e48f7
add dword [esp + 0x38], 4
jmp 0x4a4e10
mov eax, dword [edi]
jmp 0x4a4e3d
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4a4ea1
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4e63
sub eax, esi
sar eax, 1
je 0x4a4ea1
mov eax, edx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4e80
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x20]
push eax
lea edi, [ebp + 0x44]
mov eax, edi
call fcn.00401560
jmp 0x4a4efa
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push eax
call edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00486710
add esp, 4
lea edi, [ebp + 0x44]
mov dword [esp + 0x8c], 0
call fcn.00404930
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a4efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00492130
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x34], ecx
call fcn.00492130
mov edx, dword [eax + 0x24]
mov eax, dword [esp + 0xa4]
mov dword [ebp + 0x98], eax
push edi
mov eax, 3
lea ecx, [esp + 0x2c]
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x9c], 0
call fcn.00429020
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, dword [eax]
push 0x518ca0
mov ebx, esi
push eax
mov dword [esp + 0x2c], ebx
call fcn.004e4707
add esp, 8
test eax, eax
je 0x4a4f86
push edi
lea eax, [esi + 1]
lea ecx, [esp + 0x20]
call fcn.00429020
mov eax, dword [eax]
push 0x518ca8
push eax
lea ebx, [esi + 2]
call fcn.004e4707
add esp, 8
mov byte [esp + 0x1b], 0
test eax, eax
jne 0x4a4f8b
mov byte [esp + 0x1b], 1
mov dword [esp + 0x8c], esi
or esi, 0xffffffff
test bl, 2
je 0x4a4fc0
mov eax, dword [esp + 0x1c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x24], ebx
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a4fc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8c], esi
test bl, 1
je 0x4a4fee
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a4fee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x4a503d
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffe
push edi
lea ecx, [esp + 0x2c]
call fcn.0041ce10
mov dword [esp + 0x8c], 3
call fcn.00404930
mov dword [esp + 0x8c], esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a503d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 2
jne 0x4a5093
push edi
mov eax, 1
lea ecx, [esp + 0x2c]
call fcn.00429020
mov eax, dword [eax]
or ebx, 4
mov ecx, 0x515654
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a5086
test dx, dx
je 0x4a5082
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a5086
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a5060
xor eax, eax
jmp 0x4a508a
sbb eax, eax
sbb eax, esi
mov byte [esp + 0x1b], 1
test eax, eax
je 0x4a5098
mov byte [esp + 0x1b], 0
mov dword [esp + 0x8c], esi
test bl, 4
je 0x4a50c1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4a50c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x4a50d8
push 1
push 0x511ddc
lea eax, [ebp + 0x44]
push eax
call fcn.0041e520
mov ecx, dword [ebp + 0x44]
xor ebx, ebx
xor edx, edx
mov eax, ecx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4a50f5
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x68]
call fcn.00420660
mov eax, esi
push eax
mov edi, 2
mov dword [esp + 0x90], 5
call fcn.004aa250
mov ecx, esi
lea edx, [eax + 1]
push ecx
lea esi, [esp + 0x48]
call fcn.004a9c30
mov edi, 8
mov byte [esp + 0x8c], 6
cmp dword [eax + 0x18], edi
jb 0x4a514d
mov edx, dword [eax + 4]
jmp 0x4a5150
lea edx, [eax + 4]
cmp edx, ebx
jne 0x4a5158
xor eax, eax
jmp 0x4a516f
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a5160
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [ebp + 0x44]
call fcn.00401560
cmp dword [esp + 0x5c], edi
jb 0x4a518c
mov edx, dword [esp + 0x48]
push edx
call fcn.004e3ed0
add esp, 4
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x78], edi
jb 0x4a51aa
mov eax, dword [esp + 0x64]
push eax
call fcn.004e3ed0
add esp, 4
mov edi, dword [esp + 0x20]
cmp dword [esp + 0xa0], ebx
je 0x4a529c
mov edx, dword [ebp + 4]
mov edx, dword [edx]
lea eax, [esp + 0x24]
push eax
lea ecx, [ebp + 4]
push 1
push edi
mov dword [esp + 0x30], ebx
call edx
test eax, eax
je 0x4a5489
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4a5489
mov dword [ebp + 0xac], 1
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 0x1c]
push edx
call eax
push edi
push ebp
lea esi, [esp + 0x24]
mov dword [esp + 0x94], 7
call fcn.004a4bd0
test eax, eax
je 0x4a545e
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0x98], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0x3c], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0x38], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0x8c], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a52a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a52a0
mov ebx, dword [esp + 0x34]
cmp ebx, 3
ja case.0x4a52a5.0
jmp dword [ebx*4 + 0x4a5838]
mov dword [ebp + 0x28], 2
jmp 0x4a52ce
mov dword [ebp + 0x28], 4
jmp 0x4a52ce
mov dword [ebp + 0x28], 6
jmp 0x4a52ce
mov dword [ebp + 0x28], 0
push 1
lea ecx, [esp + 0x24]
push ecx
lea eax, [ebp + 0x44]
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.00489bd0
add esp, 0x10
test eax, eax
je 0x4a5490
cmp dword [esp + 0x20], 0
je 0x4a531d
mov edx, dword [esp + 0x30]
push edx
call fcn.00487770
add esp, 4
push 0
push 0
push 0x428
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x4a5811
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0
push str.unzip_failed_d
lea edi, [esp + 0x24]
mov dword [esp + 0x94], 8
call fcn.00404890
add esp, 8
lea eax, [esp + 0x30]
push eax
mov ecx, str.main
call fcn.00401640
lea ecx, [esp + 0x20]
push ecx
mov bl, 9
mov ecx, 0x510ba4
mov byte [esp + 0x90], bl
call fcn.00401640
mov byte [esp + 0x8c], 0xa
cmp dword [0x565350], 0
je 0x4a53a3
lea edx, [esp + 0x20]
push edx
mov edi, 0x565380
call fcn.004256f0
mov edi, eax
lea eax, [esp + 0x30]
call fcn.00404930
mov byte [esp + 0x8c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a53ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], 8
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a53f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x510ba8
call fcn.00401640
mov byte [esp + 0x8c], 0xb
cmp dword [0x565350], 0
je 0x4a542c
lea edx, [esp + 0x20]
push edx
mov edi, 0x565380
call fcn.004256f0
mov edi, eax
lea eax, [esp + 0x1c]
call fcn.00404930
mov byte [esp + 0x8c], 8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x565350
call fcn.004c9ff0
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4a5811
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.main
call fcn.00401640
lea edx, [esp + 0x20]
mov ebx, 0xc
push edx
mov ecx, 0x510ba4
mov dword [esp + 0x90], ebx
call fcn.00401640
mov byte [esp + 0x8c], 0xd
cmp dword [0x565350], 0
je 0x4a54e5
lea eax, [esp + 0x20]
push eax
mov edi, 0x565380
call fcn.004256f0
mov edi, eax
lea eax, [esp + 0x1c]
call fcn.00404930
mov byte [esp + 0x8c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a550e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8c], esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5534
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.unzip
call fcn.00401640
lea edx, [esp + 0x20]
mov ebx, 0xe
push edx
mov ecx, 0x510ba8
mov dword [esp + 0x90], ebx
call fcn.00401640
mov byte [esp + 0x8c], 0xf
cmp dword [0x565350], 0
je 0x4a5589
lea eax, [esp + 0x20]
push eax
mov edi, 0x565380
call fcn.004256f0
mov edi, eax
lea eax, [esp + 0x1c]
call fcn.00404930
mov byte [esp + 0x8c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a55af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8c], esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4a55d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x565350
call fcn.004c9ff0
mov ecx, dword [ebp + 0x60]
mov edx, dword [ecx + 4]
lea esi, [ebp + 0x48]
push edx
mov ecx, esi
call fcn.004aa4c0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004a9cd0
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0xc]
mov edi, eax
mov dword [esp + 0x34], edi
cmp esi, dword [ebx + 0x10]
jbe 0x4a5629
call fcn.004e48f7
mov ecx, dword [ebx]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov esi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], esi
jbe 0x4a5640
call fcn.004e48f7
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx]
test ecx, ecx
je 0x4a564e
cmp ecx, eax
je 0x4a5653
call fcn.004e48f7
cmp dword [esp + 0x2c], esi
je 0x4a5806
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
mov edx, dword [0x563288]
lea ebp, [eax + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
mov dword [esp + 0x60], ebp
call eax
lea esi, [eax + 0x10]
mov eax, 1
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x90], 0x10
call fcn.0041f7c0
lea eax, [esi - 0x10]
mov dword [esp + 0x8c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a56e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a56fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
call fcn.0041f750
mov ebp, eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4a5765
call fcn.004e48f7
xor eax, eax
mov esi, dword [esp + 0x2c]
cmp esi, dword [eax + 0x10]
jb 0x4a5722
call fcn.004e48f7
mov ecx, dword [esi]
mov esi, dword [ebp]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4a5775
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4a5769
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4a5769
call fcn.004048c0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4a575d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp], ebx
jmp 0x4a5775
mov eax, dword [eax]
jmp 0x4a5714
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov eax, ebp
call fcn.00401560
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x44]
mov esi, dword [ebp + 4]
add eax, 0x44
add ebp, 4
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4a57cf
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4a57c3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4a57c3
call fcn.004048c0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4a57bb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp], ebx
jmp 0x4a57cf
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov eax, ebp
call fcn.00401560
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4a5802
call fcn.004e48f7
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x10]
jb 0x4a57ec
call fcn.004e48f7
add dword [esp + 0x2c], 4
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
jmp 0x4a5633
mov eax, dword [eax]
jmp 0x4a57de
mov eax, 1
mov dword [ebp + 0x90], eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004e3edb
add esp, 0x7c
ret 0x14