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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
test eax, eax
push edi
jne 0x4be831
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push 0x63
push edi
push eax
mov eax, dword [ebp + 8]
push esi
push edx
push eax
call fcn.0051c6f0
add esp, 0x18
cmp eax, 1
jne 0x4bf1c2
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x4be7ad
cmp dword [esi + 8], 6
jmp 0x4be818
cmp ecx, 1
jne 0x4be7e2
mov ecx, dword [esi + 8]
mov edx, ecx
and edx, reloc.WSOCK32.dll_accept
jns 0x4be7c4
dec edx
or edx, 0xfffffffe
inc edx
jne 0x4be81e
cmp ecx, 2
jge 0x4bf1c2
push 6
push edi
push esi
call fcn.0048c510
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jne 0x4be804
cmp dword [esi + 8], 6
jge 0x4bf1c2
push 6
push edi
push esi
call fcn.0048c510
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 3
jne 0x4be80f
cmp dword [esi + 8], 6
jmp 0x4be818
cmp ecx, 4
jne 0x4be81e
cmp dword [esi + 8], 8
je 0x4bf1c2
push 6
push edi
push esi
call fcn.0048c510
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4bf18e
mov ebx, 1
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x4bf18e
cmp dword [eax + 0x1c], ebx
jne 0x4be864
dec ecx
test ecx, ecx
jle 0x4be86d
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x4be843
jmp 0x4bf18e
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
push ecx
call fcn.005da144
fstp qword [esp + 0x54]
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax]
push ecx
call fcn.005da144
fstp qword [esp + 0x60]
fld qword [esp + 0x58]
add esp, 8
call fcn.005d98b4
fld qword [esp + 0x58]
mov dword [esp + 0x30], eax
call fcn.005d98b4
mov edi, dword [ebp + 0x20]
test edi, edi
mov dword [esp + 0x34], eax
je 0x4bede4
cmp edi, 4
je 0x4bede4
cmp edi, ebx
jne 0x4be9c1
mov eax, dword [esi + 8]
sub eax, 2
cdq
sub eax, edx
sar eax, 1
lea edx, [eax*8]
push edx
call fcn.005d9f91
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4be900
mov eax, dword [ebp + 0x1c]
push 8
push eax
push esi
call fcn.0048c510
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 0x40]
mov ebx, dword [edx + 0x40]
xor edi, edi
test ebx, ebx
je 0x4be956
nop
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4be956
mov eax, dword [ebx]
push eax
call fcn.005d9a55
mov ecx, dword [esp + 0x14]
mov dword [ecx + edi*8], eax
mov edx, dword [ebx + 0x40]
mov eax, dword [edx]
push eax
call fcn.005d9a55
mov ecx, dword [esp + 0x18]
mov dword [ecx + edi*8 + 4], eax
mov eax, dword [esi + 8]
sub eax, 2
cdq
sub eax, edx
add esp, 8
inc edi
sar eax, 1
cmp edi, eax
jge 0x4be956
mov edx, dword [ebx + 0x40]
mov ebx, dword [edx + 0x40]
test ebx, ebx
jne 0x4be910
mov ebx, dword [esp + 0x10]
push 1
push edi
push ebx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
mov ecx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
mov edx, dword [ebp + 0x14]
je 0x4be992
mov eax, dword [str._true]
mov dword [edx], eax
mov cx, word [0x5f4a14]
mov word [edx + 4], cx
jmp 0x4be9ac
mov eax, dword [str._false]
mov dword [edx], eax
mov cx, word [0x5f4a04]
mov word [edx + 4], cx
mov al, byte [0x5f4a06]
mov byte [edx + 6], al
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call fcn.005d9fa3
add esp, 4
jmp 0x4bf18e
cmp edi, 2
jne 0x4bed6d
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005d9a55
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
jle 0x4bea29
lea ecx, [eax*8 + 0x10]
push ecx
call fcn.005d9f91
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
jne 0x4bea10
mov edx, dword [ebp + 0x1c]
push 8
push edx
push esi
call fcn.0048c510
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005d9a55
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
jg 0x4bea3f
mov eax, dword [ebp + 0x1c]
push 6
push eax
push esi
call fcn.0048c510
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [eax*8 + 0x10]
push ecx
call fcn.005d9f91
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4bea71
push edi
call fcn.005d9fa3
mov edx, dword [ebp + 0x1c]
push 8
push edx
push esi
call fcn.0048c510
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov edi, dword [edx + 0x40]
xor esi, esi
test edi, edi
je 0x4beac8
mov eax, dword [edi + 0x40]
test eax, eax
je 0x4beac8
cmp esi, dword [esp + 0x18]
jge 0x4beac8
mov eax, dword [edi]
push eax
call fcn.005d9a55
mov ecx, dword [esp + 0x14]
mov dword [ecx + esi*8], eax
mov edx, dword [edi + 0x40]
mov eax, dword [edx]
push eax
call fcn.005d9a55
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx + esi*8 + 4], eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jge 0x4beac8
mov edx, dword [edi + 0x40]
mov edi, dword [edx + 0x40]
test edi, edi
jne 0x4bea83
mov eax, dword [esp + 0x18]
cmp esi, eax
jne 0x4beb9d
cmp eax, 1
mov ecx, 3
jne 0x4beafd
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov dword [eax + esi*8], edx
mov edx, dword [eax + 4]
mov dword [eax + esi*8 + 4], edx
mov edx, dword [eax]
mov dword [eax + esi*8 + 8], edx
mov edx, dword [eax + 4]
mov dword [eax + esi*8 + 0xc], edx
jmp 0x4beb34
cmp eax, 2
mov eax, dword [esp + 0x10]
jne 0x4beb14
mov edx, dword [eax]
mov dword [eax + esi*8], edx
mov edx, dword [eax + 4]
mov dword [eax + esi*8 + 4], edx
jmp 0x4beb34
mov ecx, dword [eax]
cmp ecx, dword [eax + esi*8 - 8]
jne 0x4beb25
mov edx, dword [eax + 4]
cmp edx, dword [eax + esi*8 - 4]
je 0x4beb38
mov dword [eax + esi*8], ecx
mov ecx, dword [eax + 4]
mov dword [eax + esi*8 + 4], ecx
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
test edi, edi
je 0x4beb46
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x4beb46
mov edi, dword [ecx + 0x40]
xor esi, esi
test edi, edi
je 0x4beb95
jmp 0x4beb52
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x4beb95
mov ecx, dword [esp + 0x20]
cmp esi, ecx
jge 0x4beb9b
mov edx, dword [edi]
push edx
call fcn.005d9a55
mov dword [ebx + esi*8], eax
mov eax, dword [edi + 0x40]
mov ecx, dword [eax]
push ecx
call fcn.005d9a55
add esp, 8
mov dword [ebx + esi*8 + 4], eax
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jge 0x4beb91
mov edx, dword [edi + 0x40]
mov edi, dword [edx + 0x40]
test edi, edi
jne 0x4beb4e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
cmp esi, ecx
je 0x4bebc6
mov eax, dword [esp + 0x10]
push eax
call fcn.005d9fa3
push ebx
call fcn.005d9fa3
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
push 6
push ecx
push edx
call fcn.0048c510
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x4bebeb
mov ecx, dword [ebx]
mov dword [ebx + esi*8], ecx
mov edx, dword [ebx + 4]
mov dword [ebx + esi*8 + 4], edx
mov ecx, dword [ebx]
mov dword [ebx + esi*8 + 8], ecx
mov edx, dword [ebx + 4]
mov dword [ebx + esi*8 + 0xc], edx
mov ecx, 3
jmp 0x4bec18
cmp ecx, 2
jne 0x4bebfc
mov ecx, dword [ebx]
mov dword [ebx + esi*8], ecx
mov ecx, 3
jmp 0x4bec11
mov edx, dword [ebx]
cmp edx, dword [ebx + esi*8 - 8]
jne 0x4bec0d
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + esi*8 - 4]
je 0x4bec1c
mov dword [ebx + esi*8], edx
inc ecx
mov edx, dword [ebx + 4]
mov dword [ebx + esi*8 + 4], edx
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x18]
dec edx
test edx, edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], edx
jle 0x4beca9
dec ecx
mov dword [esp + 0x30], ecx
lea edi, [eax + 8]
lea ecx, [ecx]
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x28], 0
jle 0x4bec95
lea esi, [ebx + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi - 4]
push eax
mov eax, dword [esi - 8]
push ecx
push edx
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
mov eax, dword [edi - 4]
push eax
mov eax, dword [edi - 8]
push eax
call fcn.004be570
add esp, 0x20
test eax, eax
jne 0x4becf6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
inc eax
add esi, 8
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x4bec53
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
inc eax
add edi, 8
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x4bec40
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push 2
push edx
push eax
call edi
mov ecx, dword [esp + 0x20]
push 2
push ecx
push ebx
mov esi, eax
call edi
push 1
mov edi, eax
push edi
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
je 0x4bed26
cmp eax, 1
je 0x4bed26
mov eax, dword [str._true]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov cx, word [0x5f4a14]
mov word [edx + 4], cx
jmp 0x4bed43
mov edx, dword [str._true]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov ax, word [0x5f4a14]
mov word [ecx + 4], ax
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005d9fa3
push ebx
call fcn.005d9fa3
mov esi, dword [ebp + 0x10]
add esp, 8
jmp 0x4bf18e
mov eax, dword [str._false]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov cx, word [0x5f4a04]
mov word [edx + 4], cx
mov al, byte [0x5f4a06]
mov byte [edx + 6], al
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebx
call fcn.005d9fa3
add esp, 4
push esi
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005d9fa3
mov esi, dword [ebp + 0x10]
add esp, 4
jmp 0x4bf18e
cmp edi, 3
jne 0x4bf18e
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005da144
fstp qword [esp + 0x24]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax]
push ecx
call fcn.005da144
fstp qword [esp + 0x20]
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax]
push ecx
call fcn.005da144
fstp qword [esp + 0x44]
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005da144
fstp qword [esp + 0x50]
add esp, 0x10
jmp 0x4bf04d
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx]
push eax
call fcn.005da144
fstp qword [esp + 0x24]
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005da144
fstp qword [esp + 0x20]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005da144
fstp qword [esp + 0x44]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx]
push eax
call fcn.005da144
fstp qword [esp + 0x50]
fld qword [esp + 0x30]
add esp, 0x10
call fcn.005d98b4
fld qword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x70], ebx
call fcn.005d98b4
fld qword [esp + 0x38]
mov dword [esp + 0x74], eax
call fcn.005d98b4
fld qword [esp + 0x40]
add eax, ebx
mov dword [esp + 0x78], eax
call fcn.005d98b4
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x80], eax
push edx
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4bf16f
cmp edi, 4
jne 0x4bf157
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005da144
fstp qword [esp + 0x34]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
push edx
call fcn.005da144
fstp qword [esp + 0x30]
fld qword [esp + 0x38]
add esp, 8
fdiv qword [0x5f48b8]
fstp qword [esp + 0x60]
fld qword [esp + 0x28]
fdiv qword [0x5f48b8]
fstp qword [esp + 0x10]
fld qword [esp + 0x50]
fsub qword [esp + 0x20]
fstp qword [esp + 0x68]
fld qword [esp + 0x58]
fsub qword [esp + 0x18]
fstp qword [esp + 0x48]
fld qword [esp + 0x68]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 5
jp 0x4bef9e
fld qword [esp + 0x48]
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 5
jnp 0x4bf02d
fld qword [esp + 0x40]
fsub qword [esp + 0x10]
fcomp qword [esp + 0x48]
fnstsw ax
test ah, 5
jp 0x4bf157
fld qword [esp + 0x40]
mov ecx, dword [esp + 0x30]
fadd qword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
fsub qword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
fstp qword [esp + 0x18]
mov dword [esp + 0x44], ecx
jmp 0x4bf04d
fld qword [esp + 0x38]
fsub qword [esp + 0x60]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 5
jp 0x4bf157
fld qword [esp + 0x48]
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4beff6
fld qword [esp + 0x38]
mov edx, dword [esp + 0x30]
fadd qword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], edx
fsub qword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
fstp qword [esp + 0x20]
mov dword [esp + 0x44], edx
jmp 0x4bf04d
fld qword [esp + 0x40]
fsub qword [esp + 0x10]
fcomp qword [esp + 0x48]
fnstsw ax
test ah, 5
jp 0x4bf157
fld qword [esp + 0x38]
fadd qword [esp + 0x20]
fsub qword [esp + 0x30]
fstp qword [esp + 0x20]
fld qword [esp + 0x40]
fadd qword [esp + 0x18]
fsub qword [esp + 0x28]
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
fld qword [esp + 0x50]
push 0x3fe00000
fsub qword [esp + 0x24]
push 0
fld qword [esp + 0x40]
push 0x40000000
fdiv qword [0x5f48b8]
push 0
sub esp, 8
mov dword [0x631214], 0
fsubp st(1)
fstp qword [esp + 0x68]
fld qword [esp + 0x58]
fdiv qword [0x5f48b8]
fstp qword [esp + 0x80]
fld qword [esp + 0x70]
fsub qword [esp + 0x30]
fsub qword [esp + 0x80]
fstp qword [esp + 0x78]
fld qword [esp + 0x68]
fadd st(0), st(0)
fdiv qword [esp + 0x50]
fstp qword [esp]
call fcn.005db380
fsubr qword [0x5f53e0]
add esp, 8
fstp qword [esp]
call fcn.005db380
fmul qword [esp + 0x78]
mov eax, dword [0x631214]
add esp, 0x10
test eax, eax
fstp qword [esp + 0x68]
jne 0x4bf137
fld qword [esp + 0x68]
fcomp qword [0x5f56a0]
fnstsw ax
test ah, 0x44
jnp 0x4bf137
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
push edi
push ebx
call fcn.005dd7b7
fcomp qword [0x5f56a0]
add esp, 8
fnstsw ax
test ah, 1
jne 0x4bf137
push edi
push ebx
call fcn.005dd7b7
fcomp qword [esp + 0x70]
add esp, 8
fnstsw ax
test ah, 0x41
jp 0x4bf137
mov edx, dword [str._true]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov ax, word [0x5f4a14]
mov word [ecx + 4], ax
jmp 0x4bf18e
mov edx, dword [str._false]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov ax, word [0x5f4a04]
mov word [ecx + 4], ax
mov dl, byte [0x5f4a06]
mov byte [ecx + 6], dl
jmp 0x4bf18e
mov ecx, dword [str._true]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dx, word [0x5f4a14]
mov word [eax + 4], dx
jmp 0x4bf18e
mov ecx, dword [str._false]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dx, word [0x5f4a04]
mov word [eax + 4], dx
mov cl, byte [0x5f4a06]
mov byte [eax + 6], cl
mov eax, dword [esi + 8]
test eax, eax
jle 0x4bf1b6
mov edi, dword [ebp + 0xc]
mov edx, dword [esi + 0x40]
mov eax, dword [edi]
push edx
push eax
call fcn.004e8a00
mov dword [edi], eax
mov ecx, dword [esi + 8]
add esp, 8
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi + 8], ecx
jg 0x4bf198
mov dword [esi + 8], 0
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret