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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov esi, esp
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xc4], esp
mov dword [esi + 0xd0], 0xffffffff
mov dword [esi + 0xcc], 0x492710
mov dword [esi + 8], ecx
lea eax, [esi + 0xc8]
mov dword [esi + 4], edx
mov ecx, dword fs:[0]
mov dword [esi + 0xc8], ecx
mov dword fs:[0], eax
mov dword [esi + 0xd0], 0
call fcn.004767b0
mov dword [esi + 0x34], eax
mov edi, eax
lock dec byte [eax + 0x18]
je 0x47816b
mov eax, dword [ebp + 8]
add edi, 0x18
mov dword [esi + 0x14], eax
mov eax, dword [0x4eb1f8]
mov dword [esi + 0x28], edi
test eax, eax
je 0x477cfa
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov ebx, 0x3e8
mul ebx
mov edi, eax
mov eax, dword [esi + 8]
seto cl
mul ebx
mov ebx, edx
add ebx, edi
mov edi, eax
setb al
or al, cl
jne 0x477cdb
mov eax, dword [ebp + 8]
mov ecx, 0x431bde83
mul ecx
shr edx, 0x12
add edi, edx
adc ebx, 0
jb 0x477cdb
imul eax, edx, 0xf4240
xor ecx, ecx
sub dword [esi + 0x14], eax
setne cl
xor eax, eax
add edi, ecx
adc ebx, 0
setb cl
neg ebx
sbb eax, eax
test cl, cl
je 0x477d3e
mov eax, 0xffffffff
mov edi, dword [esi + 0x28]
mov ecx, dword [esi + 0x10]
push eax
push 1
push 0x4bfac8
push edi
call ecx
xor eax, eax
xchg byte [edi], al
jmp 0x47816b
mov ebx, dword [0x4eb034]
cmp ebx, 0xffffffff
jne 0x477d4b
mov dword [esi + 0x44], 0xffffffff
lea ecx, [esi + 0x44]
mov eax, dword [0x4eb040]
push 0
push 0
push 0xc0000000
push ecx
call eax
test eax, eax
jne 0x47818f
mov ecx, dword [esi + 0x44]
mov eax, 0xffffffff
lock cmpxchg dword [0x4eb034], ecx
jne 0x477d42
mov ebx, ecx
jmp 0x477d4b
or eax, edi
jmp 0x477ce0
mov ebx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov edi, 0x3b9aca00
mov dword [esi + 0x58], ebx
mul edi
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, edx
mul edi
mov edi, ebx
add eax, ecx
mov ecx, 0xffffff9c
adc edx, 0
add edi, dword [ebp + 8]
adc eax, 0
adc edx, 0
setb bl
cmp ecx, edi
mov ecx, 0xffffffff
sbb ecx, eax
mov ecx, 0x31
movzx ebx, bl
sbb ecx, edx
mov ecx, 0
mov dword [esi + 0x54], ebx
sbb ecx, ebx
jb 0x477f48
mov dword [esi + 0x4c], edi
add edi, 0x63
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], edx
mov dword [esi + 8], edi
mov edi, eax
adc eax, 0
mov edi, edx
mov edx, ebx
mov ecx, dword [esi + 8]
adc edi, 0
mov dword [esi + 4], eax
adc edx, 0
mov dword [esi + 0xc], edi
or eax, edx
mov dword [esi + 0x18], edx
or ecx, edi
or ecx, eax
sete byte [esi + 0x10]
bsr ecx, edi
bsr eax, edx
xor ecx, 0x1f
xor eax, 0x1f
add ecx, 0x20
test edx, edx
cmovne ecx, eax
bsr eax, dword [esi + 8]
bsr ebx, dword [esi + 4]
xor eax, 0x1f
xor ebx, 0x1f
add eax, 0x20
cmp dword [esi + 4], 0
cmovne eax, ebx
mov ebx, 0
add eax, 0x40
or edi, edx
mov edx, 0
mov edi, 0
cmovne eax, ecx
mov ecx, 0x79
sub ecx, eax
mov eax, 0x7f
sbb edx, edx
sbb edi, edi
sbb ebx, ebx
cmp eax, ecx
mov eax, 0
mov dword [esi + 0x24], edi
sbb eax, edx
mov eax, 0
mov dword [esi + 0x20], ebx
sbb eax, edi
mov eax, 0
mov edi, 0
sbb eax, ebx
mov ebx, dword [esi + 8]
setb al
or al, byte [esi + 0x10]
mov eax, dword [esi + 4]
cmovne eax, edi
cmovne ebx, edi
mov dword [esi + 0x14], eax
jne 0x477f4d
mov eax, ecx
mov dword [esi + 0x1c], ecx
mov ecx, edx
xor eax, 0x7f
or ecx, dword [esi + 0x20]
or eax, dword [esi + 0x24]
or ecx, eax
mov ecx, dword [esi + 0x14]
je 0x4780ff
mov eax, dword [esi + 8]
mov dword [esi + 0xb0], eax
mov eax, dword [esi + 4]
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0xac], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x1c]
xor al, 0x7f
mov ch, al
shr al, 3
and al, 0xf
and ch, 7
neg al
mov cl, ch
movsx eax, al
mov edi, dword [esi + eax + 0xb8]
mov ebx, dword [esi + eax + 0xbc]
shld ebx, edi, cl
shl edi, cl
not cl
mov dword [esi + 0x40], ebx
mov dword [esi + 0x2c], edi
mov edi, dword [esi + eax + 0xb4]
mov ebx, dword [esi + eax + 0xb0]
mov eax, edi
shr eax, 1
shr eax, cl
mov cl, ch
shld edi, ebx, cl
shl ebx, cl
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x14], edi
mov edi, dword [esi + 0x20]
mov dword [esi + 0x10], ebx
add ecx, 1
adc edx, 0
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x24]
adc edx, 0
adc edi, 0
jae 0x477f55
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
jmp 0x4780ed
jmp 0x478108
mov ecx, dword [esi + 0x14]
jmp 0x4780ff
or dword [esi + 0x2c], eax
mov eax, dword [esi + 8]
mov ebx, edx
mov edx, edi
mov dword [esi + 0x80], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x9c], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x8c], eax
mov eax, ecx
mov ch, al
mov dword [esi + 0x1c], eax
shr al, 3
and al, 0xf
and ch, 7
movzx eax, al
mov cl, ch
mov edi, dword [esi + eax + 0x8c]
mov dword [esi + 0x20], edx
mov edx, ebx
mov ebx, dword [esi + eax + 0x88]
mov dword [esi + 0x24], edx
mov edx, ebx
add ebx, ebx
shrd edx, edi, cl
mov dword [esi + 4], edx
mov edx, dword [esi + eax + 0x84]
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0xc]
shr edx, cl
not cl
shl ebx, cl
mov cl, ch
or ebx, edx
mov edx, dword [esi + 0xc]
shr edi, cl
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + eax + 0x80]
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
shrd eax, edx, cl
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
nop dword [eax]
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x40]
mov ebx, dword [esi + 0xc]
mov dword [esi + 0xc], 0
shld dword [esi + 8], ecx, 1
shld ecx, edi, 1
shld edi, edx, 1
shld edx, eax, 1
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x2c]
shld eax, ecx, 1
or eax, ebx
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x14]
shld ecx, eax, 1
or ecx, ebx
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x10]
shld eax, ecx, 1
add ecx, ecx
or ecx, dword [esi + 0x18]
or eax, ebx
mov ebx, dword [esi + 8]
mov dword [esi + 0x14], eax
mov eax, 0x63
cmp eax, edx
mov dword [esi + 0x10], ecx
mov ecx, 0
sbb ecx, edi
mov ecx, 0
sbb ecx, dword [esi + 4]
mov ecx, 0
sbb ecx, ebx
sar ecx, 0x1f
mov eax, ecx
and ecx, 0x64
and eax, 1
sub edx, ecx
mov ecx, ebx
mov ebx, dword [esi + 0x20]
sbb edi, 0
mov dword [esi + 0x38], edx
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x30]
sbb dword [esi + 4], 0
mov dword [esi + 0x3c], edi
mov edi, dword [esi + 0x24]
sbb ecx, 0
add edx, 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], edx
adc edi, 0xffffffff
mov ecx, eax
adc ebx, 0xffffffff
or edx, edi
mov dword [esi + 0x24], edi
or ecx, ebx
mov dword [esi + 0x20], ebx
or edx, ecx
jne 0x478020
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
shld ecx, ebx, 1
add ebx, ebx
or ecx, dword [esi + 0xc]
or ebx, dword [esi + 0x18]
mov edx, dword [esi + 0x50]
mov edi, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
neg ebx
mov dword [esi + 0x10], ebx
mov ebx, 0
sbb ebx, ecx
cmp edi, 0xffffff9d
mov ecx, closesocket
sbb eax, 0xffffffff
mov eax, 0
sbb edx, 0x31
sbb dword [esi + 0x54], 0
cmovb ecx, ebx
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x10]
cmovae ecx, eax
mov dword [esi + 0x60], ecx
lea ecx, [esi + 0x60]
mov eax, dword [0x4eb048]
push ecx
push 0
mov edi, dword [esi + 0x28]
push edi
mov ebx, dword [esi + 0x58]
push ebx
call eax
test eax, eax
mov eax, 0
xchg byte [edi], al
je 0x47816b
cmp al, 1
jne 0x47816b
mov eax, dword [0x4eb048]
push 0
push 0
push edi
push ebx
call eax
mov eax, dword [esi + 0x34]
lock dec dword [eax]
jne 0x47817b
mov ecx, dword [esi + 0x34]
call fcn.004745f0
mov eax, dword [esi + 0xc8]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [esi + 0x5c]
lea ecx, [esi + 0x78]
mov dword [esi + 0x60], 0x4bfaf4
mov dword [esi + 0x64], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x5c], eax
mov dword [esi + 0xd0], 1
mov dword [esi + 0x78], edx
mov dword [esi + 0x68], ecx
lea ecx, [esi + 0x60]
mov edx, 0x4bfb2c
mov dword [esi + 0x7c], fcn.0040ffa0
mov dword [esi + 0x6c], 1
call fcn.00493a60
ud2