Function at 0x4ffee0
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x314
mov eax, dword [0x961870]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
push edi
mov dword [esp + 0x20], esi
jae 0x4fff20
mov dword [ecx], str.TtConvexWelder
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edi
mov eax, dword [edx + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 0x10]
push 0x5185e0
mov dword [esp + 0x54], eax
push edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x58]
push eax
push ecx
mov ecx, esi
call fcn.00518b50
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x120]
xor ebx, ebx
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x114], edx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], reloc.WS2_32.dll_connect
call fcn.004ffaf0
cmp dword [esi + 0x10], ebx
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ebx
jle 0x5001e0
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
jmp 0x4fffc0
mov esi, dword [esp + 0x20]
mov edi, edi
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x14]
call fcn.00525d20
cmp dword [esi + 8], eax
je 0x5001af
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [esi]
push eax
call dword [edx + 0x34]
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
mov edi, eax
mov eax, dword [esi]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
push eax
push ecx
lea edx, [esp + 0x3b]
push edx
call dword [0x6a68b4]
mov cl, byte [eax]
add esp, 0x10
test cl, cl
je 0x500194
mov edx, dword [ebp + 0x10]
mov ebx, dword [esi + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
push ecx
push edx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
lea ecx, [esp + 0x110]
call fcn.004ffd00
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
shl edx, 7
mov dword [edx + eax - 0x10], ebx
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
mov esi, dword [esi]
shl ecx, 7
mov dword [ecx + edx - 0xc], edi
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
shl eax, 7
mov dword [eax + ecx - 8], esi
mov edx, dword [esp + 0x114]
mov al, byte [esp + 0x28]
mov ecx, dword [esp + 0x110]
shl edx, 7
mov byte [edx + ecx - 3], al
mov al, byte [esp + 0x28]
test al, al
je 0x5001ac
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
lea edx, [esp + 0x70]
shl eax, 7
push edx
lea ecx, [eax + ecx - 0x80]
call fcn.004ff9d0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xb0]
push edx
add eax, 0x20
push eax
lea ecx, [esp + 0x68]
call fcn.0054cef0
fld dword [esp + 0x90]
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
shl ecx, 7
lea eax, [ecx + edx - 0x30]
mov ecx, dword [esp + 0xa0]
mov dword [eax], ecx
mov edx, dword [esp + 0xa4]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0xa8]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0xac]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x6c]
mov dword [eax + 0x1c], edx
fstp dword [eax + 0xc]
mov bl, byte [ebx + 0x15]
cmp bl, 1
je 0x50017b
cmp bl, 2
je 0x50017b
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
xor al, al
shl ecx, 7
mov byte [ecx + edx - 4], al
jmp 0x5001ac
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
mov al, 1
shl ecx, 7
mov byte [ecx + edx - 4], al
jmp 0x5001ac
mov ecx, dword [ebp + 0x14]
mov esi, dword [esi + 8]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 8]
push ebx
lea edx, [esp + 0x38]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov edi, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
add edx, 0x100
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x10]
inc eax
add esi, 0xc
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], esi
jl 0x4fffba
mov eax, dword [esp + 0x114]
xor edx, edx
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x18], edx
jle 0x500602
mov dword [esp + 0x14], edx
jmp 0x500201
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x14]
fld dword [ecx + eax + 0x20]
add ecx, eax
mov eax, ebx
sub eax, edx
cmp eax, 4
mov esi, edx
jl 0x500284
lea edi, [ecx + 0xa0]
fcom dword [edi - 0x80]
fnstsw ax
test ah, 0x41
jne 0x500234
fstp st(0)
mov esi, edx
fld dword [edi - 0x80]
fcom dword [edi]
fnstsw ax
test ah, 0x41
jne 0x500244
fstp st(0)
lea esi, [edx + 1]
fld dword [edi]
fcom dword [edi + 0x80]
fnstsw ax
test ah, 0x41
jne 0x50025c
fstp st(0)
lea esi, [edx + 2]
fld dword [edi + 0x80]
fcom dword [edi + 0x100]
fnstsw ax
test ah, 0x41
jne 0x500274
fstp st(0)
lea esi, [edx + 3]
fld dword [edi + 0x100]
add edx, 4
lea eax, [ebx - 3]
add edi, 0x200
cmp edx, eax
jl 0x500223
cmp edx, ebx
jge 0x5002b2
mov edi, dword [esp + 0x110]
mov eax, edx
shl eax, 7
lea edi, [eax + edi + 0x20]
fcom dword [edi]
fnstsw ax
test ah, 0x41
jne 0x5002a7
fstp st(0)
mov esi, edx
fld dword [edi]
inc edx
add edi, 0x80
cmp edx, ebx
jl 0x500298
mov edi, dword [esp + 0x110]
fstp st(0)
shl esi, 7
add esi, edi
mov eax, esi
mov edx, dword [eax + 8]
fld dword [eax]
mov dword [esp + 0x78], edx
fld dword [eax + 4]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x88], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x90], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0xa0], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0xa4], edx
mov edx, dword [eax + 0x38]
mov dword [esp + 0xa8], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0xac], edx
mov edx, dword [eax + 0x40]
mov dword [esp + 0xb0], edx
mov edx, dword [eax + 0x44]
mov dword [esp + 0xb4], edx
mov edx, dword [eax + 0x48]
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 0x4c]
mov dword [esp + 0xbc], edx
mov edx, dword [eax + 0x50]
mov dword [esp + 0xc0], edx
mov edx, dword [eax + 0x54]
mov dword [esp + 0xc4], edx
mov edx, dword [eax + 0x58]
mov dword [esp + 0xc8], edx
mov edx, dword [eax + 0x5c]
mov dword [esp + 0xcc], edx
mov edx, dword [eax + 0x60]
mov dword [esp + 0xd0], edx
mov edx, dword [eax + 0x64]
mov dword [esp + 0xd4], edx
mov edx, dword [eax + 0x68]
mov dword [esp + 0xd8], edx
mov edx, dword [eax + 0x6c]
mov esi, dword [eax + 0x70]
mov edi, dword [eax + 0x74]
mov dword [esp + 0xdc], edx
mov edx, dword [eax + 0x78]
mov dword [esp + 0xe8], edx
mov dl, byte [eax + 0x7c]
mov byte [esp + 0xec], dl
mov dl, byte [eax + 0x7d]
mov byte [esp + 0xed], dl
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x24]
fxch st(1)
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x38], edx
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x3c], edx
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x40], edx
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x44], edx
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x48], edx
mov edx, dword [ecx + 0x4c]
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x50], edx
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x54], edx
mov edx, dword [ecx + 0x58]
mov dword [eax + 0x58], edx
mov edx, dword [ecx + 0x5c]
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x60], edx
mov edx, dword [ecx + 0x64]
mov dword [eax + 0x64], edx
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x68], edx
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x70], edx
mov edx, dword [ecx + 0x74]
mov dword [eax + 0x74], edx
mov edx, dword [ecx + 0x78]
mov dword [eax + 0x78], edx
mov dl, byte [ecx + 0x7c]
mov byte [eax + 0x7c], dl
mov dl, byte [ecx + 0x7d]
mov byte [eax + 0x7d], dl
fstp dword [ecx]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
fstp dword [ecx + 4]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x84]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 0x1c], edx
mov edx, dword [esp + 0x94]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0xa0]
mov dword [ecx + 0x24], edx
mov edx, dword [esp + 0xa4]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0xa8]
mov dword [ecx + 0x34], edx
mov edx, dword [esp + 0xac]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0xb0]
mov dword [ecx + 0x3c], edx
mov edx, dword [esp + 0xb4]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0xb8]
mov dword [ecx + 0x44], edx
mov edx, dword [esp + 0xbc]
mov dword [ecx + 0x48], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x50], eax
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
mov dword [ecx + 0x54], edx
mov edx, dword [esp + 0xcc]
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 0xd0]
mov dword [ecx + 0x5c], edx
mov edx, dword [esp + 0xd4]
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0xd8]
mov dword [ecx + 0x64], edx
mov edx, dword [esp + 0xdc]
mov dword [ecx + 0x68], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 0x6c], edx
mov dl, byte [esp + 0xec]
mov dword [ecx + 0x78], eax
mov al, byte [esp + 0xed]
mov dword [ecx + 0x70], esi
mov esi, dword [esp + 0x14]
mov dword [ecx + 0x74], edi
mov byte [ecx + 0x7c], dl
mov byte [ecx + 0x7d], al
mov eax, dword [esp + 0x110]
mov dl, byte [esi + eax + 0x7d]
test dl, dl
lea ecx, [esi + eax + 0x50]
je 0x5005db
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x18]
push eax
push ebx
inc edx
push edx
lea eax, [esp + 0x11c]
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004ffe10
mov ebx, eax
mov eax, dword [esp + 0x18]
inc eax
add esi, 0x80
cmp eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jl 0x5001fd
mov eax, dword [esp + 0x114]
mov edi, dword [ebp + 0xc]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x1c], eax
jle 0x5006df
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
jmp 0x500620
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + ecx + 0x70]
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x5006c0
add esi, 0x48
mov dword [esp + 0x24], eax
mov ecx, dword [esi - 4]
mov edx, dword [esi]
mov eax, dword [esi - 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov edx, dword [edi + 8]
lea ecx, [esi + 8]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x14]
add edx, 0x20
push edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x44], eax
call fcn.0054cef0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x48], edx
mov edx, dword [ecx + 0xc]
push edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
push ebx
mov dword [esp + 0x54], eax
push 0
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004ffe10
mov ebx, eax
mov eax, dword [esp + 0x24]
add esi, 0x30
dec eax
mov dword [esp + 0x24], eax
jne 0x500641
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add ecx, 0x80
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
jne 0x500620
xor edx, edx
cmp dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
jle 0x5007b2
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x110]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x74]
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x30], edx
mov esi, dword [eax + 0x70]
jge 0x50074d
mov cl, byte [eax + 0x7d]
test cl, cl
je 0x50074d
lea ecx, [esi + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esi + 0x30]
push edx
mov edx, dword [ecx + 8]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.00521750
add esp, 0x1c
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x118]
fld dword [ecx + edx + 0x20]
mov edx, dword [ebp + 8]
fsub dword [0x645f84]
lea eax, [esi + 0x18]
push eax
mov eax, dword [ebp + 0x10]
add esi, 0x30
push esi
push ecx
fstp dword [esp]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
call fcn.00521a20
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
add esp, 0x20
inc eax
add edx, 0x80
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x5006f1
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x5007dc
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [esp + 0x10c]
mov ecx, dword [0x9617f0]
shl eax, 8
add eax, 0xf
and eax, 0xfffffff0
je 0x50080f
mov edx, dword [ecx + 0x14]
mov esi, dword [esp + 0x108]
cmp esi, edx
je 0x500806
test edx, edx
jne 0x50080f
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x28]
jmp 0x50081f
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub esi, eax
add edx, eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x104]
test eax, eax
js 0x500848
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 8
push eax
mov eax, dword [esp + 0x104]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x118]
test eax, eax
js 0x500871
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 7
push eax
mov eax, dword [esp + 0x118]
push eax
call dword [edx + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10