Function at 0x4826d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc539
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x50e150]
mov edx, dword [eax + 0xc]
mov ecx, 0x50e150
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x38], esi
push 0x1000
mov dword [esp + 0x1c], 1
call fcn.004a2026
mov ebp, dword [esp + 0x44]
mov ebx, dword [ebp]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
lea esp, [esp]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
test ebx, ebx
je 0x482762
cmp ebx, eax
je 0x482767
call fcn.004b3c6c
cmp esi, dword [esp + 0x2c]
je 0x4828db
mov dword [esp + 0x1c], 0x800
test ebx, ebx
jne 0x482888
call fcn.004b3c6c
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x482792
call fcn.004b3c6c
mov edx, dword [esi + 0x10]
push 0
lea ecx, [esp + 0x20]
push 0x400
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0041bab0
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x4c]
mov ebp, dword [edx]
mov eax, dword [eax]
add esp, 0xc
test ebx, ebx
je 0x4827c0
cmp ebx, eax
je 0x4827c5
call fcn.004b3c6c
cmp esi, ebp
je 0x482818
mov eax, dword [edi]
mov ebp, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
lea esi, [ebp + 1]
sub edx, esi
or ecx, edx
jge 0x4827eb
mov ecx, esi
mov eax, edi
call fcn.00408a80
mov eax, dword [edi]
mov ecx, 0x26
mov word [eax + ebp*2], cx
test esi, esi
jl 0x4828d1
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4828d1
mov dword [eax - 0xc], esi
mov edx, dword [edi]
xor eax, eax
mov word [edx + esi*2], ax
mov esi, dword [esp + 0x24]
test ebx, ebx
jne 0x48288f
call fcn.004b3c6c
cmp esi, dword [ebx + 0x18]
jne 0x48282b
call fcn.004b3c6c
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.00410ea0
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 1]
sub eax, esi
or edx, eax
jge 0x48285b
mov ecx, esi
mov eax, edi
call fcn.00408a80
mov ecx, dword [edi]
mov edx, 0x3d
mov word [ecx + ebx*2], dx
test esi, esi
jl 0x4828d1
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4828d1
mov edx, dword [esp + 0x14]
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + esi*2], cx
test edx, edx
jne 0x482893
xor eax, eax
jmp 0x4828af
mov eax, dword [ebx]
jmp 0x482788
mov ebx, dword [ebx]
jmp 0x482821
mov eax, edx
lea esi, [eax + 2]
jmp 0x4828a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4828a0
sub eax, esi
sar eax, 1
push eax
push edx
push edi
call fcn.00410ea0
lea esi, [esp + 0x20]
call fcn.004457d0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
jmp 0x482750
push 0x80070057
call fcn.00403da0
mov edx, dword [esp + 0x14]
push edx
call fcn.004b3add
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8