Function at 0x4d2f10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x539ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
push 0
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
push eax
push 2
mov dword [esp + 0x3c], ecx
call fcn.004e5da0
mov cl, byte [esp + 0x88]
add esp, 4
inc cl
neg cl
sbb ecx, ecx
and ecx, 0xffffffe5
add ecx, 0x27
add eax, ecx
or ah, 0x80
push eax
call fcn.00471ea0
mov edx, dword [esi]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x78]
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x88], 0xc
call fcn.004e7760
add esp, 0xc
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004e7840
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x28], edx
lea edx, [esp + 0x24]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x30], eax
call fcn.00470430
movsx ecx, word [esi + 0x7c]
movsx edx, word [esi + 0x7a]
movsx esi, word [esi + 0x78]
mov edi, dword [esp + 0x2c]
mov eax, edx
mov ebx, esi
imul eax, edi
imul ebx, dword [esp + 0x28]
add eax, ebx
mov ebx, dword [esp + 0x30]
mov ebp, ecx
add esp, 0x14
imul ebp, ebx
add eax, ebp
sar eax, 0xc
shl eax, 1
imul esi, eax
imul edx, eax
mov ebp, dword [esp + 0x14]
imul ecx, eax
sar esi, 0xc
sar edx, 0xc
sub esi, ebp
sub edx, edi
mov edi, esi
mov ebp, edx
sar edi, 0x1f
mov eax, edi
mov dword [esp + 0x14], esi
xor eax, esi
mov dword [esp + 0x18], edx
sar ecx, 0xc
sar ebp, 0x1f
sub eax, edi
sub ecx, ebx
mov edi, ebp
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x1c]
xor edi, edx
sar ecx, 0x1f
sub edi, ebp
mov ebp, ecx
xor ebp, ebx
xor ebx, ebx
sub ebp, ecx
cmp edi, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
jb 0x4d309f
cmp eax, ebp
ja 0x4d309b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
neg eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
jmp 0x4d30c5
cmp edi, eax
ja 0x4d30b7
cmp edi, ebp
ja 0x4d30b7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
neg esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
jmp 0x4d30c5
neg edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x14]
push ecx
call fcn.0046d640
lea edx, [esp + 0x24]
push edx
call fcn.0046d670
call fcn.0046d700
push 0xac
call fcn.004088a0
add esp, 0xc
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
cmp eax, ebx
mov dword [esp + 0x70], ebx
je 0x4d3122
mov ecx, dword [esp + 0x7c]
push edi
push esi
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x3c]
push ecx
push edx
mov ecx, eax
call fcn.004d2dd0
lea eax, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
push eax
call fcn.0046d790
push 0xac
call fcn.004088a0
add esp, 8
mov dword [esp + 0x78], eax
cmp eax, ebx
mov dword [esp + 0x70], 1
je 0x4d316e
mov ecx, dword [esp + 0x7c]
push edi
push esi
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x3c]
push ecx
push edx
mov ecx, eax
call fcn.004d2dd0
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret