Function at 0x4b28f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ff879
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x870
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.004de330
xor ebx, ebx
mov dword [esp + 0x888], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004db440
mov dword [esp + 0x58], eax
mov eax, dword [0xcf7e80]
push eax
call fcn.004db450
push str.framedata_for_CItemPropGump
push 0x10
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], 2
call fcn.004b9f50
xor ecx, ecx
mov dword [ebp + 0x40], eax
mov dword [eax], ecx
lea edx, [esp + 0x60]
mov dword [eax + 4], ecx
push edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 0xe4]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.004dc870
mov eax, dword [esp + 0x2c]
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
push 0x636af0
mov dword [esp + 0x18], 0x24
call fcn.004de730
cmp dword [ebp + 0x140], ebx
je 0x4b2a7f
lea ecx, [esp + 0x44]
push 0xfd2d1
push ecx
call fcn.004b3120
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x88c], 1
call fcn.004de800
lea ecx, [esp + 0x44]
mov byte [esp + 0x888], bl
call fcn.004de3d0
push 0x5199ec
lea ecx, [esp + 0x30]
call fcn.004de510
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x88c], 2
call fcn.004de800
lea ecx, [esp + 0x2c]
mov byte [esp + 0x888], bl
call fcn.004de3d0
mov eax, dword [ebp + 0x140]
lea ecx, [esp + 0x2c]
push eax
call fcn.004de510
lea ecx, [esp + 0x2c]
mov byte [esp + 0x888], 3
push ecx
lea ecx, [esp + 0x20]
call fcn.004de800
lea ecx, [esp + 0x2c]
mov byte [esp + 0x888], bl
call fcn.004de3d0
push 0x5199ec
lea ecx, [esp + 0x30]
call fcn.004de510
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x88c], 4
call fcn.004de800
lea ecx, [esp + 0x2c]
mov byte [esp + 0x888], bl
call fcn.004de3d0
cmp dword [ebp + 0x13c], ebx
jg 0x4b2a93
cmp dword [ebp + 0xf4], ebx
jne 0x4b2c37
push 0x519538
lea ecx, [esp + 0x30]
call fcn.004de510
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x88c], 5
call fcn.004de800
lea ecx, [esp + 0x2c]
mov byte [esp + 0x888], bl
call fcn.004de3d0
cmp dword [ebp + 0xf4], ebx
je 0x4b2bcf
mov eax, dword [ebp + 0x13c]
mov dword [esp + 0x18], ebx
cmp eax, ebx
jle 0x4b2c03
lea esi, [ebp + 0x128]
lea edi, [ebp + 0x100]
mov ecx, dword [edi]
lea edx, [esp + 0x70]
push ecx
push edx
call fcn.004b3120
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x88c], 6
call fcn.004de800
lea ecx, [esp + 0x70]
mov byte [esp + 0x888], bl
call fcn.004de3d0
cmp word [esi], 0xffff
jae 0x4b2b6d
push 0x51bf50
lea ecx, [esp + 0x30]
call fcn.004de510
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x88c], 7
call fcn.004de800
lea ecx, [esp + 0x2c]
mov byte [esp + 0x888], bl
call fcn.004de3d0
xor ecx, ecx
mov cx, word [esi]
push ecx
lea ecx, [esp + 0x20]
call fcn.004de820
mov edx, dword [ebp + 0x13c]
mov eax, dword [esp + 0x18]
dec edx
cmp eax, edx
je 0x4b2bb0
push 0x525b84
lea ecx, [esp + 0x48]
call fcn.004de510
lea eax, [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x88c], 8
call fcn.004de800
lea ecx, [esp + 0x44]
mov byte [esp + 0x888], bl
call fcn.004de3d0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x13c]
inc eax
add edi, 4
add esi, 2
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4b2af1
jmp 0x4b2c03
lea ecx, [esp + 0x70]
push 0xfd6b0
push ecx
call fcn.004b3120
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x88c], 9
call fcn.004de800
lea ecx, [esp + 0x70]
mov byte [esp + 0x888], bl
call fcn.004de3d0
push 0x526248
lea ecx, [esp + 0x48]
call fcn.004de510
lea edx, [esp + 0x44]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x88c], 0xa
call fcn.004de800
lea ecx, [esp + 0x44]
mov byte [esp + 0x888], bl
call fcn.004de3d0
lea eax, [esp + 0x54]
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004dea20
push eax
call fcn.004dc870
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x4b2c6a
mov ecx, eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
add eax, esi
add ecx, 4
mov dword [esp + 0x14], eax
imul eax, ecx
lea eax, [eax + eax + 4]
mov dword [esp + 0x10], ecx
push eax
call fcn.004ed8ee
mov ecx, dword [ebp + 0x40]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x40]
mov cx, word [esp + 0x14]
mov eax, dword [edx + 4]
mov word [eax], cx
mov edx, dword [ebp + 0x40]
mov cx, word [esp + 0x18]
mov eax, dword [edx + 4]
mov word [eax + 2], cx
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x40]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xe4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x84]
push edx
push eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ecx
mov word [esp + 0x8c], bx
call fcn.004d9b80
mov al, byte [0xd423ee]
xor ecx, ecx
cmp al, 1
lea eax, [esp + 0x8c]
sete cl
xor edx, edx
push ecx
mov dx, word [ebp + 0xe8]
push edx
push eax
call fcn.004d6040
add esp, 0x18
lea ecx, [esp + 0x1c]
mov word [esp + 0x80], bx
call fcn.004dea20
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.004d9b80
mov al, byte [0xd423ee]
xor edx, edx
cmp al, 1
lea ecx, [esp + 0x88]
sete dl
xor eax, eax
push edx
mov ax, word [ebp + 0xe8]
push eax
push ecx
call fcn.004d6040
mov edi, 0x636af0
or ecx, 0xffffffff
xor eax, eax
mov byte [0xd423ee], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x74]
mov edx, ecx
mov esi, edi
mov edi, 0xd423d0
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [ebp + 0xe8]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov ax, word [edx*8 + 0xcac154]
push eax
mov eax, dword [esp + 0x58]
cdq
sub eax, edx
push ebx
mov esi, eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp + 0xe4]
sar esi, 1
sar eax, 1
sub eax, esi
push eax
mov eax, dword [ebp + 0x40]
push edx
push ecx
mov ecx, dword [eax + 4]
add ecx, 4
push ecx
call fcn.004dbf10
mov eax, dword [esp + 0x48]
add esp, 0x30
cdq
sub eax, edx
mov dword [0xd82da0], 1
mov ecx, eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
lea edx, [esp + 0x60]
sar ecx, 1
sar eax, 1
sub eax, ecx
mov cl, byte [0xcf7e69]
neg cl
sbb ecx, ecx
push edx
and ecx, 0x8000
add ecx, 0x7fff
push ecx
push 0x12
push eax
lea ecx, [esp + 0x2c]
call fcn.004dea20
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [ebp + 0x40]
push edx
mov ecx, dword [eax + 4]
add ecx, 4
push ecx
call fcn.004dbf10
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [0xd82da0], ebx
mov ecx, dword [ebp + 0x40]
push 1
push edx
mov edx, dword [ecx + 4]
push eax
add edx, 4
push edx
call fcn.00430100
mov eax, dword [esp + 0x84]
push eax
call fcn.004db450
mov ecx, dword [esp + 0x40]
add esp, 0x30
mov eax, ecx
mov dword [ebp + 0x20], ecx
cdq
sub eax, edx
lea ecx, [esp + 0x60]
mov edx, eax
mov eax, dword [ebp + 0xb0]
sar edx, 1
sub eax, edx
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0xb0], eax
mov eax, dword [ebp + 0xb4]
push ecx
sub eax, edx
mov ecx, ebp
mov dword [ebp + 0x34], eax
mov dword [ebp + 0xb4], eax
mov eax, dword [ebp]
mov dword [ebp + 0x24], edx
call dword [eax + 0xc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x888], 0xffffffff
call fcn.004de3d0
mov ecx, dword [esp + 0x880]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x87c
ret