Function at 0x4f39c0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4172a0
push 0x4a45366a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [esi], 0x4a417260
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edi, eax
dec edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], 0x10
push 0x10
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.004f3890
mov dword [ebp - 0x2c], eax
push 0x10
mov edx, dword [ebp + 0xc]
push edx
mov ecx, esi
call fcn.004f3890
mov dword [ebp - 0x28], eax
push 4
mov eax, dword [ebp + 0x20]
push eax
mov ecx, esi
call fcn.004f3890
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov cl, byte [ebp + 0x2c]
mov byte [esi + 0x24], cl
mov dword [esi + 0x28], 0xdeadbeef
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
lea eax, [edx + ebx]
mov dword [esi + 0x2c], eax
imul eax, eax, 0x8c
add eax, 0x148
mov dword [esi + 0x30], eax
lea eax, [edi + 1]
push eax
call fcn.004f5320
test al, al
je 0x4f3d45
cmp ebx, 1
jl 0x4f3d45
cmp dword [ebp - 0x28], 3
jl 0x4f3d45
mov ebx, dword [ebp + 0x30]
test ebx, ebx
jle 0x4f3d45
push ebx
call fcn.004f5320
test al, al
je 0x4f3d45
mov eax, dword [ebp + 0x34]
cmp eax, ebx
jl 0x4f3d45
push eax
call fcn.004f5320
test al, al
je 0x4f3d45
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
push 0
mov eax, dword [esi + 0x30]
push eax
push edi
call dword [edx + 8]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4f3d37
mov dword [esi + 0x20], ebx
add ebx, 0x24
mov dword [ebp - 0x24], ebx
mov ecx, eax
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x4f3b0c
mov edx, dword [ebp + 0x38]
push edx
call fcn.004fe460
mov dword [esi + 8], ebx
mov eax, dword [esi + 0x2c]
imul eax, eax, 0x88
add ebx, eax
mov dword [ebp - 0x24], ebx
xor edi, edi
mov dword [ebp - 0x20], edi
cmp edi, dword [ebp - 0x2c]
jge 0x4f3b61
mov eax, edi
shl eax, 4
add eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov ecx, edi
imul ecx, ecx, 0x88
add ecx, dword [esi + 8]
mov dword [ebp - 0x50], ecx
je 0x4f3b5e
mov edx, dword [esi + 0x20]
push edx
mov edx, dword [ebp + 0x28]
push edx
mov edx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.004fd830
inc edi
jmp 0x4f3b1f
xor edi, edi
mov dword [ebp - 0x20], edi
cmp edi, dword [ebp - 0x28]
jge 0x4f3ba8
mov eax, edi
shl eax, 4
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x2c]
add ecx, edi
imul ecx, ecx, 0x88
add ecx, dword [esi + 8]
mov dword [ebp - 0x58], ecx
je 0x4f3ba5
mov edx, dword [esi + 0x20]
push edx
mov edx, dword [ebp + 0x28]
push edx
mov edx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.004fd830
inc edi
jmp 0x4f3b63
mov dword [esi + 4], ebx
mov ecx, dword [esi + 0x2c]
lea edi, [ebx + ecx*4]
mov dword [ebp - 0x24], edi
xor eax, eax
mov dword [ebp - 0x20], eax
cmp eax, dword [esi + 0x2c]
jge 0x4f3bd2
mov edx, eax
imul edx, edx, 0x88
add edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [ecx + eax*4], edx
inc eax
jmp 0x4f3bb6
mov dword [esi + 0x14], edi
add edi, 0x7c
mov dword [ebp - 0x24], edi
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x5c], ecx
test ecx, ecx
je 0x4f3c02
mov edx, dword [esi + 0x20]
push edx
mov eax, dword [esi + 0x1c]
push eax
push 1
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0x18]
push edx
call fcn.004fc680
mov al, byte [esi + 0x24]
test al, al
je 0x4f3ccc
mov ebx, 0x4a45fde8
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0x30]
mov edx, 1
mov eax, 0
lock cmpxchg dword [ecx], edx
mov dword [ebp - 0x60], eax
test eax, eax
sete al
mov byte [ebp - 0x19], al
test al, al
jne 0x4f3c41
push 0xffffffffffffffff
mov ecx, 0x4a45fddc
call fcn.004f5180
mov eax, dword [0x4a45fdd8]
mov ecx, eax
inc eax
mov dword [0x4a45fdd8], eax
test ecx, ecx
jne 0x4f3ca4
test byte [0x4a45fe14], 1
jne 0x4f3c7b
or dword [0x4a45fe14], 1
push 1
mov ecx, 0x4a45fdf0
call fcn.004fe460
push 0x4a45d650
call fcn.004f56a6
add esp, 4
mov ecx, 0x4a45fd58
mov dword [esi + 0x18], ecx
mov dword [ebp - 0x64], ecx
push 0x4a45fdf0
mov edx, dword [esi + 0x1c]
push edx
push 1
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0x18]
push edx
call fcn.004fc680
jmp 0x4f3cab
mov dword [esi + 0x18], 0x4a45fd58
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x34]
mov eax, 0
lock xchg dword [ecx], eax
mov eax, dword [0x4a45fdec]
test eax, eax
jle 0x4f3ccc
mov ecx, 0x4a45fddc
call fcn.004f5260
mov dword [esi + 0x10], edi
add edi, 0x50
mov dword [ebp - 0x24], edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x68], ecx
test ecx, ecx
je 0x4f3cf4
mov eax, dword [esi + 0x20]
push eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [esi + 0x1c]
push eax
mov edx, dword [ebp + 0x20]
push edx
call fcn.004fba80
mov dword [esi + 0xc], edi
mov dword [ebp - 0x6c], edi
test edi, edi
je 0x4f3d66
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x20]
push ecx
mov edx, dword [ebp + 0x34]
push edx
mov ecx, dword [ebp + 0x30]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [esi + 0x1c]
push edx
mov edx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [ebp + 0x1c]
push edx
lea ecx, [eax + ecx*4]
push ecx
push eax
mov ecx, edi
call fcn.004fac20
jmp 0x4f3d66
push 1
push 0x4a417230
call fcn.004f5080
jmp 0x4f3d66
push 1
push 0x4a417200
call fcn.004f5080
jmp 0x4f3d66
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34