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

Disassembly:
push 0xffffffffffffffff
push 0x53ad38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov edi, ecx
push edi
lea ecx, [esp + 0x94]
call fcn.00515acf
mov eax, dword [edi]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0xbc], ebp
call dword [eax + 0x188]
mov edx, dword [edi]
mov esi, eax
mov ecx, edi
mov dword [esp + 0x34], esi
call dword [edx + 0x18c]
mov ecx, edi
mov ebx, eax
call fcn.004cda00
cmp eax, ebp
jne 0x4ce08a
cmp dword [edi + 0x274], ebp
jne 0x4ce08a
xor ecx, ecx
jmp 0x4ce08f
mov ecx, 1
mov eax, dword [edi + 0x240]
add ebx, esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x84], ebx
mov ebx, 4
lea edx, [eax - 2]
mov dword [esp + 0x44], esi
mov dword [esp + 0x7c], esi
mov esi, dword [sym.imp.USER32.dll_SetRectEmpty]
cmp ecx, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x24], ebx
je 0x4ce19c
mov eax, dword [edi + 0x264]
cmp eax, ebp
je 0x4ce0f9
mov ebx, dword [eax + 0x40]
jmp 0x4ce0fb
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x24], ebx
call fcn.004cdf90
push eax
mov eax, dword [esp + 0xc8]
mov edx, ebx
lea esi, [edi + 0x1e0]
lea ecx, [ebx + eax]
push ecx
push 0
neg edx
push edx
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_OffsetRect]
sub eax, edx
push eax
lea eax, [esp + 0x3c]
push 0
push eax
call ebp
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
sub eax, ecx
lea ecx, [esp + 0x78]
push eax
push 0
push ecx
call ebp
mov eax, dword [edi + 0x1ec]
mov ebp, dword [esp + 0xc4]
push eax
push ebp
lea esi, [edi + 0x1f0]
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x1ec]
lea edx, [edi + 0x200]
push eax
push ebp
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x264]
test eax, eax
jne 0x4ce1b7
push esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x4ce1b7
lea eax, [edi + 0x1e0]
push eax
call esi
lea eax, [edi + 0x1f0]
push eax
call esi
lea ecx, [edi + 0x200]
push ecx
call esi
mov eax, 0x54ffb0
xor ebp, ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebp
mov ecx, edi
mov byte [esp + 0xbc], 2
mov dword [esp + 0x14], ebp
call fcn.0047d940
test eax, eax
jle 0x4ce2b0
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.0047d950
mov esi, eax
mov ecx, edi
push esi
call fcn.004cdf20
test eax, eax
je 0x4ce234
mov eax, dword [esp + 0x6c]
push 0xffffffffffffffff
mov ebp, eax
inc eax
push eax
lea ecx, [esp + 0x6c]
call fcn.004c7e90
mov eax, dword [esp + 0x68]
jmp 0x4ce293
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x4ce298
cmp dword [esi + 0x150], ebp
jne 0x4ce298
mov eax, dword [esi + 0x80]
cmp eax, 0xf020
jl 0x4ce25c
cmp eax, 0xf120
jle 0x4ce298
cmp esi, dword [edi + 0x258]
je 0x4ce298
cmp esi, dword [edi + 0x1b8]
je 0x4ce298
cmp esi, dword [edi + 0x1bc]
je 0x4ce298
cmp esi, dword [edi + 0x24c]
je 0x4ce298
mov eax, dword [esp + 0x58]
push 0xffffffffffffffff
mov ebp, eax
inc eax
push eax
lea ecx, [esp + 0x58]
call fcn.004c7e90
mov eax, dword [esp + 0x54]
mov dword [eax + ebp*4], esi
xor ebp, ebp
mov esi, dword [esp + 0x14]
mov ecx, edi
inc esi
mov dword [esp + 0x14], esi
call fcn.0047d940
cmp esi, eax
jl 0x4ce201
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
lea esi, [eax + ecx - 3]
mov ecx, dword [edi + 0x230]
cmp ecx, ebp
je 0x4ce2ec
cmp dword [edi + 0x22c], ebp
je 0x4ce2ec
mov ecx, dword [esp + 0x84]
lea edx, [ecx + eax]
lea eax, [edi + 0x210]
push edx
mov edx, dword [esp + 0xc8]
push edx
push ecx
push ebp
push eax
jmp 0x4ce307
mov ecx, dword [edi + 0x1e8]
lea eax, [ebx + eax - 3]
push eax
push ecx
add ebx, 0xfffffffe
lea ecx, [esi + 3]
lea edx, [edi + 0x210]
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [edi + 0x258]
mov dword [esp + 0x10], 2
cmp ecx, ebp
je 0x4ce430
mov edx, dword [edi + 0x1e4]
mov eax, dword [esp + 0x24]
mov ebp, esi
lea ebx, [esi - 1]
lea esi, [edx + eax - 1]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4ce36d
mov edx, dword [ecx]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 0x94]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x34]
sub eax, ebx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x3c]
sar esi, 1
add esi, eax
jmp 0x4ce3b9
mov eax, dword [edi + 0x228]
test eax, eax
jne 0x4ce3b9
mov edx, dword [ecx]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 0x94]
mov ebp, dword [eax]
mov edx, dword [edi + 0x1e4]
mov ebx, dword [eax + 4]
mov eax, dword [edi + 0x1ec]
sub eax, edx
lea ecx, [ebp + 0xf]
sub eax, ebx
mov dword [edi + 0x210], ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [edi + 0x1e4]
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 0x4ce3de
mov eax, dword [edi + 0x228]
test eax, eax
jne 0x4ce3de
mov eax, 1
jmp 0x4ce3e0
xor eax, eax
mov ecx, dword [edi + 0x258]
test eax, eax
mov edx, dword [ecx]
mov eax, dword [ecx + 0xcc]
je 0x4ce3f6
or al, 2
jmp 0x4ce3f8
and al, 0xfd
push eax
call dword [edx + 0x8c]
sub esp, 0x10
mov ecx, dword [edi + 0x258]
mov eax, esp
mov edx, dword [ecx]
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 + 0x258]
xor ebp, ebp
mov dword [eax + 0x90], 1
mov eax, dword [esp + 0x58]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x14], ebx
jle 0x4ce568
mov ecx, dword [esp + 0x54]
mov esi, dword [ecx + ebx*4]
mov ecx, esi
call fcn.00477340
test al, 1
jne 0x4ce557
mov edx, dword [edi + 0x228]
xor eax, eax
cmp edx, ebp
mov edx, dword [esi]
sete al
cmp eax, ebp
mov eax, dword [esi + 0xcc]
je 0x4ce475
or al, 4
jmp 0x4ce477
and al, 0xfb
push eax
mov ecx, esi
call dword [edx + 0x8c]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x4ce557
mov eax, dword [esi]
lea ecx, [esp + 0x90]
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x94]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
mov ebx, eax
mov eax, dword [esi + 0x94]
sar ebx, 1
add ebx, edx
cmp eax, ebp
je 0x4ce4cd
add dword [esp + 0x10], 6
mov eax, dword [esp + 0x10]
add ecx, ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
mov dword [esp + 0xa4], eax
lea ebp, [ecx + eax]
mov eax, dword [esi + 0xcc]
and al, 0xfd
mov ecx, esi
push eax
mov dword [esp + 0x14], ebp
call dword [edx + 0x8c]
mov ecx, dword [esp + 0xa4]
sub esp, 0x10
mov eax, esp
mov edx, dword [esi]
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 ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0xc8]
lea ebp, [esi + 0xac]
mov eax, 2
add edx, 0xfffffffe
mov dword [ebp], eax
mov dword [esi + 0x90], 0
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp + 0x14]
xor ebp, ebp
mov eax, dword [esp + 0x58]
inc ebx
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x4ce442
mov edx, dword [edi + 0x230]
mov eax, dword [esp + 0x10]
cmp edx, ebp
mov dword [esp + 0x48], eax
je 0x4ce5b5
mov ecx, dword [edi + 0x22c]
cmp ecx, ebp
jne 0x4ce5b5
cmp dword [esp + 0x20], ebp
jne 0x4ce5b5
add eax, 5
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], eax
mov dword [edi + 0x210], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x214], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x21c], eax
jmp 0x4ce5d4
mov ecx, dword [edi + 0x22c]
mov esi, dword [edi + 0x210]
mov eax, ecx
mov dword [esp + 0x30], ebp
neg eax
sbb eax, eax
and eax, 2
add eax, esi
mov dword [esp + 0x10], eax
cmp edx, ebp
je 0x4ce5ec
cmp ecx, ebp
je 0x4ce5ec
mov ecx, dword [esp + 0xc4]
add ecx, 0xfffffff1
mov dword [esp + 0x18], ecx
jmp 0x4ce625
mov ecx, edi
call fcn.004d06c0
test eax, eax
je 0x4ce607
mov edx, dword [esp + 0xc4]
add edx, 0xffffff8d
mov dword [esp + 0x18], edx
jmp 0x4ce625
mov eax, dword [edi + 0x1e4]
mov edx, dword [edi + 0x1ec]
mov ecx, dword [esp + 0xc4]
sub eax, edx
lea edx, [ecx + eax*2]
add eax, edx
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x254]
cmp ecx, ebp
je 0x4ce641
mov edx, dword [ecx + 0xcc]
mov eax, dword [ecx]
or edx, 1
push edx
call dword [eax + 0x8c]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x14], ebp
jle 0x4ce87f
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4]
mov eax, dword [edi + 0x230]
test eax, eax
jne 0x4ce67a
mov eax, dword [esi + 0xcc]
mov edx, dword [esi]
or al, 2
jmp 0x4ce698
cmp esi, dword [edi + 0x254]
je 0x4ce6a1
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
test eax, eax
mov eax, dword [esi + 0xcc]
je 0x4ce696
or al, 2
jmp 0x4ce698
and al, 0xfd
push eax
mov ecx, esi
call dword [edx + 0x8c]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4ce6c6
mov eax, dword [edi + 0x228]
test eax, eax
jne 0x4ce6c6
mov eax, dword [esi + 0xcc]
mov edx, dword [esi]
or al, 2
mov ecx, esi
push eax
call dword [edx + 0x8c]
cmp esi, dword [edi + 0x250]
jne 0x4ce6ed
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4ce6ed
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4ce6ed
mov eax, dword [edi + 0x22c]
test eax, eax
jne 0x4ce6ed
add dword [esp + 0x10], 0xc
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x4ce86a
cmp esi, dword [edi + 0x254]
je 0x4ce718
mov eax, dword [edi + 0x250]
mov dword [esp + 0x24], 0
cmp esi, eax
jne 0x4ce720
mov dword [esp + 0x24], 1
mov eax, dword [esi]
lea ecx, [esp + 0x90]
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x94]
mov eax, dword [edi + 0x21c]
mov ecx, dword [edi + 0x214]
lea ebp, [edi + 0x210]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
sub eax, ecx
inc eax
cdq
sub eax, edx
mov edx, dword [edi + 0x214]
mov ebx, eax
mov eax, dword [esp + 0x24]
sar ebx, 1
add ebx, edx
test eax, eax
jne 0x4ce7ce
mov eax, dword [edi + 0x22c]
test eax, eax
jne 0x4ce77e
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4ce77e
add ebx, 2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x4c], 1
cmp edx, dword [esp + 0x18]
jle 0x4ce7d2
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi]
or ecx, 2
mov dword [esp + 0x1c], 1
push ecx
mov ecx, esi
call dword [eax + 0x8c]
mov ecx, dword [edi + 0x254]
mov eax, dword [ecx + 0xcc]
mov edx, dword [ecx]
and al, 0xfe
push eax
call dword [edx + 0x8c]
jmp 0x4ce86a
mov eax, dword [esp + 0x10]
add ecx, ebx
mov dword [esp + 0xa4], eax
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x88], ecx
jne 0x4ce7ff
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4ce803
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0xcc]
mov edx, dword [esi]
and al, 0xfd
mov ecx, esi
push eax
call dword [edx + 0x8c]
mov ecx, dword [esp + 0xa4]
sub esp, 0x10
mov eax, esp
mov edx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x9c]
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 [esi + 0x90], 0
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4ce659
mov eax, dword [edi + 0x22c]
test eax, eax
jne 0x4ce893
mov edx, dword [esp + 0x10]
mov dword [edi + 0x218], edx
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4ce8a3
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x18], eax
lea ebx, [ecx - 1]
test ebx, ebx
mov dword [esp + 0x14], ebx
jl 0x4ce9f3
mov edx, dword [esp + 0x54]
mov esi, dword [edx + ebx*4]
mov ecx, esi
call fcn.00477340
test al, 1
je 0x4ce9e4
mov edx, dword [edi + 0x228]
xor eax, eax
test edx, edx
sete al
test eax, eax
je 0x4ce8fe
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi]
or ecx, 4
push ecx
mov ecx, esi
call dword [eax + 0x8c]
jmp 0x4ce911
mov eax, dword [esi + 0xcc]
mov edx, dword [esi]
and al, 0xfb
mov ecx, esi
push eax
call dword [edx + 0x8c]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x4ce9e4
mov eax, dword [esi]
lea ecx, [esp + 0x90]
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x94]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
mov ebx, dword [esp + 0x3c]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
mov ebp, eax
mov eax, dword [esp + 0x18]
sar ebp, 1
add ebp, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0xcc]
add ecx, ebp
sub ebx, edx
mov edx, dword [esi]
and al, 0xfd
mov dword [esp + 0x48], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
call dword [edx + 0x8c]
sub esp, 0x10
mov ecx, dword [esp + 0xbc]
mov eax, esp
mov edx, dword [esi]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x74]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0xc8]
lea ebp, [esi + 0xac]
mov eax, 2
add edx, 0xfffffffe
mov dword [ebp], eax
mov eax, dword [esi]
push 0
mov dword [esi + 0x90], 1
mov dword [ebp + 4], ecx
mov ecx, esi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
call dword [eax + 0x5c]
mov ebx, dword [esp + 0x14]
dec ebx
mov dword [esp + 0x14], ebx
jns 0x4ce8c1
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x228]
test ecx, ecx
jne 0x4cea05
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
lea esi, [edi + 0x1c0]
lea edx, [ecx + 6]
cmp edx, eax
jle 0x4cea1f
push esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x4cea34
mov edx, esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 0xc], eax
mov ecx, dword [edi + 0x24c]
test ecx, ecx
je 0x4cead6
mov ebx, dword [edi + 0x228]
mov edx, dword [ecx]
xor eax, eax
test ebx, ebx
sete al
test eax, eax
mov eax, dword [ecx + 0xcc]
je 0x4cea5f
or al, 1
jmp 0x4cea61
and al, 0xfe
push eax
call dword [edx + 0x8c]
sub esp, 0x10
mov eax, esi
mov ecx, dword [edi + 0x24c]
mov ebx, esp
mov ebp, dword [eax]
mov edx, dword [ecx]
mov dword [ebx], ebp
mov ebp, dword [eax + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [eax + 8]
mov dword [ebx + 8], ebp
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
call dword [edx + 0x74]
mov eax, dword [edi + 0x24c]
test eax, eax
je 0x4ceaa2
lea ebx, [eax + 0x174]
jmp 0x4ceaa4
xor ebx, ebx
mov ecx, edi
call fcn.004cfab0
mov ebp, dword [esi]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], ebp
mov ebp, dword [esi + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], esi
lea ecx, [esp + 0xa0]
push ecx
push ebx
mov ecx, eax
call dword [edx + 0x58]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0xa0]
push edx
mov ecx, edi
call fcn.004cf7b0
mov ecx, edi
call fcn.004cf3a0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ceb21
mov ecx, edi
call fcn.004cef80
mov esi, 0x54ffb0
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x68]
mov byte [esp + 0xbc], 3
test eax, eax
je 0x4ceb43
push eax
call fcn.00511c55
add esp, 4
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x54]
mov byte [esp + 0xbc], 4
test eax, eax
je 0x4ceb60
push eax
call fcn.00511c55
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00515b41
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret 8