Function at 0x4bf330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x528a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov edi, ecx
push edi
lea ecx, [esp + 0x9c]
call fcn.00505af6
mov eax, dword [edi]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0xc4], ebx
call dword [eax + 0x1fc]
mov edx, dword [edi]
mov esi, eax
mov ecx, edi
mov dword [esp + 0x2c], esi
call dword [edx + 0x200]
mov ebp, dword [edi + 0x278]
xor ecx, ecx
cmp ebp, ebx
setne cl
cmp ecx, ebx
jne 0x4bf39e
cmp dword [edi + 0x288], ebx
jne 0x4bf39e
xor edx, edx
jmp 0x4bf3a3
mov edx, 1
mov ecx, dword [edi + 0x254]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xcc]
lea ebp, [ecx - 2]
add eax, esi
cmp edx, ebx
mov dword [esp + 0x38], ebp
mov ebp, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x84], esi
mov esi, dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x24], ebp
je 0x4bf4b7
mov eax, dword [edi + 0x278]
cmp eax, ebx
je 0x4bf413
mov ebp, dword [eax + 0x40]
jmp 0x4bf415
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x24], ebp
call fcn.004bc8d0
mov edx, dword [esp + 0xcc]
push eax
lea eax, [edx + ebp]
push eax
push 0
mov ecx, ebp
neg ecx
push ecx
lea esi, [edi + 0x1f4]
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
sub eax, edx
push eax
push 0
lea edx, [esp + 0x38]
push edx
call ebx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push eax
push 0
lea eax, [esp + 0x88]
push eax
call ebx
mov eax, dword [edi + 0x200]
mov ebx, dword [esp + 0xcc]
push eax
push ebx
push 0
push 0
lea esi, [edi + 0x204]
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x200]
push eax
push ebx
push 0
push 0
lea ecx, [edi + 0x214]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x278]
test eax, eax
jne 0x4bf4d2
push esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x4bf4d2
lea eax, [edi + 0x1f4]
push eax
call esi
lea edx, [edi + 0x204]
push edx
call esi
lea eax, [edi + 0x214]
push eax
call esi
xor ebx, ebx
mov eax, 0x551670
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov ecx, edi
mov byte [esp + 0xc4], 2
mov dword [esp + 0x14], ebx
call fcn.0044f6a0
test eax, eax
jle 0x4bf5cb
lea esp, [esp]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.0044f6b0
mov esi, eax
push esi
mov ecx, edi
call fcn.004bc850
test eax, eax
je 0x4bf55e
test ebx, ebx
jl 0x4bfd79
push 0xffffffffffffffff
lea edx, [ebx + 1]
push edx
lea ecx, [esp + 0x60]
call fcn.004d5e60
mov eax, dword [esp + 0x5c]
mov dword [eax + ebx*4], esi
mov ebx, dword [esp + 0x60]
jmp 0x4bf5b3
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x4bf5b3
mov eax, dword [esi + 0x150]
test eax, eax
jne 0x4bf5b3
mov eax, dword [esi + 0x80]
cmp eax, 0xf020
jl 0x4bf589
cmp eax, 0xf120
jle 0x4bf5b3
cmp esi, dword [edi + 0x26c]
je 0x4bf5b3
cmp esi, dword [edi + 0x1cc]
je 0x4bf5b3
cmp esi, dword [edi + 0x1d0]
je 0x4bf5b3
cmp esi, dword [edi + 0x260]
je 0x4bf5b3
push esi
lea ecx, [esp + 0x70]
call fcn.0047d2c0
mov esi, dword [esp + 0x14]
inc esi
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.0044f6a0
cmp esi, eax
jl 0x4bf520
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
lea esi, [eax + ecx - 3]
mov ecx, dword [edi + 0x244]
test ecx, ecx
je 0x4bf60a
mov ecx, dword [edi + 0x240]
test ecx, ecx
je 0x4bf60a
mov ecx, dword [esp + 0x8c]
lea edx, [ecx + eax]
push edx
mov edx, dword [esp + 0xd0]
push edx
push ecx
lea eax, [edi + 0x224]
push 0
push eax
jmp 0x4bf625
mov ecx, dword [edi + 0x1fc]
lea eax, [eax + ebp - 3]
push eax
push ecx
add ebp, 0xfffffffe
push ebp
lea ecx, [esi + 3]
lea edx, [edi + 0x224]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [edi + 0x26c]
test ecx, ecx
mov ebp, 2
mov dword [esp + 0x10], ebp
je 0x4bf74f
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x1f8]
mov ebp, esi
lea ebx, [esi - 1]
lea esi, [eax + edx - 1]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4bf688
mov edx, dword [ecx]
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x44]
push eax
call dword [edx + 0x94]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x2c]
sub eax, ebx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x34]
jmp 0x4bf6d0
mov eax, dword [edi + 0x23c]
test eax, eax
jne 0x4bf6d4
mov edx, dword [ecx]
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x44]
push eax
call dword [edx + 0x94]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov edx, dword [edi + 0x1f8]
mov eax, dword [edi + 0x200]
sub eax, edx
sub eax, ebx
cdq
sub eax, edx
lea ecx, [ebp + 0xf]
mov esi, eax
mov eax, dword [edi + 0x1f8]
mov dword [edi + 0x224], ecx
sar esi, 1
add esi, eax
mov eax, dword [esp + 0x20]
add ebx, esi
mov dword [esp + 0x1c], ebx
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], ebp
jne 0x4bf6f9
mov eax, dword [edi + 0x23c]
test eax, eax
jne 0x4bf6f9
mov eax, 1
jmp 0x4bf6fb
xor eax, eax
mov ecx, dword [edi + 0x26c]
mov edx, dword [ecx]
test eax, eax
mov eax, dword [ecx + 0xcc]
je 0x4bf712
or eax, 2
jmp 0x4bf715
and eax, 0xfffffffd
push eax
call dword [edx + 0x8c]
mov ecx, dword [edi + 0x26c]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], esi
call dword [edx + 0x74]
mov eax, dword [edi + 0x26c]
mov ebp, dword [esp + 0x10]
mov dword [eax + 0x90], 1
mov esi, dword [esp + 0x74]
xor ebx, ebx
test esi, esi
mov dword [esp + 0x14], ebx
jle 0x4bf89f
test ebx, ebx
jl 0x4bfd79
cmp ebx, esi
jge 0x4bfd79
mov ecx, dword [esp + 0x70]
mov esi, dword [ecx + ebx*4]
mov ecx, esi
call fcn.004535c0
test al, 1
jne 0x4bf88e
mov edx, dword [edi + 0x23c]
xor eax, eax
test edx, edx
mov edx, dword [esi]
sete al
mov ecx, esi
test eax, eax
mov eax, dword [esi + 0xcc]
je 0x4bf7a7
or eax, 4
jmp 0x4bf7aa
and eax, 0xfffffffb
push eax
call dword [edx + 0x8c]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x4bf88e
mov eax, dword [esi]
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call dword [eax + 0x94]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
mov ebx, eax
mov eax, dword [esi + 0x94]
sar ebx, 1
add ebx, edx
test eax, eax
je 0x4bf801
add ebp, 6
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
add ecx, ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
lea ebp, [ecx + eax]
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0xcc]
and eax, 0xfffffffd
push eax
mov ecx, esi
mov dword [esp + 0x14], ebp
call dword [edx + 0x8c]
mov ecx, dword [esp + 0xac]
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x74]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xd0]
lea ebp, [esi + 0xac]
mov eax, 2
mov dword [ebp], eax
mov dword [ebp + 4], ecx
add edx, 0xfffffffe
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov dword [esi + 0x90], 0
mov esi, dword [esp + 0x74]
inc ebx
cmp ebx, esi
mov dword [esp + 0x14], ebx
jl 0x4bf761
mov ecx, dword [edi + 0x244]
test ecx, ecx
mov dword [esp + 0x50], ebp
je 0x4bf8e6
mov eax, dword [edi + 0x240]
test eax, eax
jne 0x4bf8e6
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x4bf8e6
mov edx, dword [esp + 0x34]
mov dword [edi + 0x228], edx
mov edx, dword [esp + 0x3c]
add ebp, 5
mov dword [esp + 0x28], 1
mov dword [edi + 0x224], ebp
mov dword [edi + 0x230], edx
jmp 0x4bf905
mov eax, dword [edi + 0x240]
mov edx, dword [edi + 0x224]
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, 2
mov dword [esp + 0x28], 0
add ebp, edx
test ecx, ecx
mov dword [esp + 0x10], ebp
je 0x4bf921
test eax, eax
je 0x4bf921
mov eax, dword [esp + 0xcc]
add eax, 0xfffffff1
mov dword [esp + 0x18], eax
jmp 0x4bf95c
mov eax, dword [edi + 0x278]
test eax, eax
je 0x4bf93e
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x4bf93e
mov ecx, dword [esp + 0xcc]
add ecx, 0xffffff8d
jmp 0x4bf958
mov eax, dword [edi + 0x1f8]
mov ebx, dword [edi + 0x200]
mov edx, dword [esp + 0xcc]
sub eax, ebx
lea ecx, [edx + eax*2]
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x268]
test ecx, ecx
je 0x4bf978
mov edx, dword [ecx + 0xcc]
mov eax, dword [ecx]
or edx, 1
push edx
call dword [eax + 0x8c]
mov ecx, dword [esp + 0x60]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], eax
jle 0x4bfbd4
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4bfd79
cmp eax, dword [esp + 0x60]
jge 0x4bfd79
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx + eax*4]
mov eax, dword [edi + 0x244]
test eax, eax
jne 0x4bf9c4
mov eax, dword [esi + 0xcc]
or eax, 2
jmp 0x4bf9e2
cmp esi, dword [edi + 0x268]
je 0x4bf9ed
mov eax, dword [esp + 0x1c]
test eax, eax
mov eax, dword [esi + 0xcc]
je 0x4bf9df
or eax, 2
jmp 0x4bf9e2
and eax, 0xfffffffd
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0x8c]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4bfa13
mov eax, dword [edi + 0x23c]
test eax, eax
jne 0x4bfa13
mov eax, dword [esi + 0xcc]
mov edx, dword [esi]
or eax, 2
push eax
mov ecx, esi
call dword [edx + 0x8c]
cmp esi, dword [edi + 0x264]
jne 0x4bfa3a
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4bfa3a
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4bfa3a
mov eax, dword [edi + 0x240]
test eax, eax
jne 0x4bfa3a
add dword [esp + 0x10], 0xc
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x4bfbb7
cmp esi, dword [edi + 0x268]
je 0x4bfa63
cmp esi, dword [edi + 0x264]
mov dword [esp + 0x24], 0
jne 0x4bfa6b
mov dword [esp + 0x24], 1
mov eax, dword [esi]
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call dword [eax + 0x94]
mov ecx, dword [edi + 0x228]
mov eax, dword [edi + 0x230]
sub eax, ecx
mov ecx, dword [esp + 0x44]
lea ebp, [edi + 0x224]
sub eax, ecx
inc eax
cdq
sub eax, edx
mov edx, dword [edi + 0x228]
mov ebx, eax
mov eax, dword [esp + 0x24]
sar ebx, 1
add ebx, edx
test eax, eax
jne 0x4bfb1a
mov eax, dword [edi + 0x240]
test eax, eax
jne 0x4bfac9
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4bfac9
add ebx, 2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
add edx, eax
cmp edx, dword [esp + 0x18]
mov dword [esp + 0x54], 1
jle 0x4bfb1e
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi]
or ecx, 2
push ecx
mov ecx, esi
mov dword [esp + 0x20], 1
call dword [eax + 0x8c]
mov ecx, dword [edi + 0x268]
mov eax, dword [ecx + 0xcc]
mov edx, dword [ecx]
and eax, 0xfffffffe
push eax
call dword [edx + 0x8c]
jmp 0x4bfbb7
mov eax, dword [esp + 0x10]
add ecx, ebx
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x40]
add ecx, eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x90], ecx
jne 0x4bfb4b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4bfb4f
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0xcc]
mov edx, dword [esi]
and eax, 0xfffffffd
push eax
mov ecx, esi
call dword [edx + 0x8c]
mov ecx, dword [esp + 0xac]
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x74]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ebp, [esi + 0xac]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x90], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4bf992
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x74]
mov eax, dword [edi + 0x240]
test eax, eax
jne 0x4bfbe4
mov dword [edi + 0x22c], ebp
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4bfbf4
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0xcc]
lea ebx, [esi - 1]
test ebx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
jge 0x4bfc41
mov eax, dword [edi + 0x23c]
test eax, eax
jne 0x4bfc1c
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
lea ecx, [ebp + 6]
cmp ecx, eax
lea esi, [edi + 0x1d4]
jle 0x4bfd7e
push esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x4bfd97
mov esi, dword [esp + 0x74]
test ebx, ebx
jl 0x4bfd79
cmp ebx, esi
jge 0x4bfd79
mov eax, dword [esp + 0x70]
mov esi, dword [eax + ebx*4]
mov ecx, esi
call fcn.004535c0
test al, 1
je 0x4bfd69
mov edx, dword [edi + 0x23c]
xor eax, eax
test edx, edx
mov edx, dword [esi]
sete al
mov ecx, esi
test eax, eax
mov eax, dword [esi + 0xcc]
je 0x4bfc87
or eax, 4
jmp 0x4bfc8a
and eax, 0xfffffffb
push eax
call dword [edx + 0x8c]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x4bfd69
mov eax, dword [esi]
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call dword [eax + 0x94]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
mov ebp, eax
mov eax, dword [esp + 0x18]
sar ebp, 1
add ebp, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xb4], eax
mov eax, dword [esi + 0xcc]
add ecx, ebp
sub ebx, edx
mov edx, dword [esi]
and eax, 0xfffffffd
mov dword [esp + 0x50], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
call dword [edx + 0x8c]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x74]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0xd0]
mov eax, 2
lea ebp, [esi + 0xac]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
add edx, 0xfffffffe
mov dword [ebp + 8], edx
mov edx, dword [esi]
push 0
mov ecx, esi
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x90], 1
call dword [edx + 0x5c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
dec ebx
mov dword [esp + 0x14], ebx
jns 0x4bfc3d
jmp 0x4bfc0a
call fcn.004f9708
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, esi
mov dword [edx], ebp
mov dword [edx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov ecx, dword [edi + 0x260]
test ecx, ecx
je 0x4bfe3f
mov ebx, dword [edi + 0x23c]
mov edx, dword [ecx]
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov eax, dword [ecx + 0xcc]
je 0x4bfdc3
or eax, 1
jmp 0x4bfdc6
and eax, 0xfffffffe
push eax
call dword [edx + 0x8c]
mov ecx, dword [edi + 0x260]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esi
mov ebp, dword [eax]
mov ebx, esp
mov dword [ebx], ebp
mov ebp, dword [eax + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], eax
call dword [edx + 0x74]
mov eax, dword [edi + 0x260]
test eax, eax
je 0x4bfe07
lea ebx, [eax + 0x174]
jmp 0x4bfe09
xor ebx, ebx
mov ecx, edi
call fcn.0044ea60
mov ecx, dword [eax + 0x644]
mov ebp, dword [esi]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esi + 4]
mov dword [eax + 4], ebp
mov ebp, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], esi
lea eax, [esp + 0xa8]
push eax
push ebx
call dword [edx + 0x58]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
lea ebp, [edi + 0x1e4]
mov dword [ebp], edx
mov dword [ebp + 4], ecx
mov ebx, ecx
mov ecx, dword [edi + 0x260]
test ecx, ecx
mov dword [ebp + 8], eax
mov dword [esp + 0xb8], esi
mov dword [ebp + 0xc], esi
je 0x4bfec5
mov ecx, dword [ecx + 0x178]
test ecx, ecx
je 0x4bfec5
mov ecx, dword [ecx + 0x80]
lea esi, [edx + 4]
mov dword [esp + 0x40], esi
lea esi, [esp + 0x40]
push esi
push 0x40
sub eax, edx
push eax
lea edx, [esp + 0xa4]
add ebx, 3
push edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 6
mov dword [esp + 0x5c], 3
call fcn.004e2ec0
mov ecx, edi
call fcn.004beee0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4bfedb
mov ecx, edi
call fcn.004be350
mov eax, dword [esp + 0x5c]
test eax, eax
mov byte [esp + 0xc4], 1
je 0x4bfef4
push eax
call fcn.00501033
add esp, 4
mov eax, dword [esp + 0x70]
test eax, eax
mov byte [esp + 0xc4], 0
je 0x4bff0d
push eax
call fcn.00501033
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00505b51
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb8
ret 8