Function at 0x47e280
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], 0x4aa020
mov dword [esi + 4], ecx
lea eax, [esi + 0xc8]
mov dword [esi + 8], edx
mov ecx, dword fs:[0]
mov dword [esi + 0xc8], ecx
mov dword fs:[0], eax
mov dword [esi + 0xd0], 0
call fcn.0047de00
lock dec byte [eax + 0x18]
mov ebx, eax
je 0x47e812
mov eax, ebx
add eax, 0x18
mov dword [esi + 0x30], eax
mov eax, dword [0x53cba8]
test eax, eax
je 0x47e387
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov edi, 0x3e8
mov dword [esi + 0x14], ebx
mul edi
mov ebx, eax
mov eax, dword [esi + 4]
seto cl
mul edi
mov edi, edx
add edi, ebx
mov ebx, eax
setb al
or al, cl
jne 0x47e365
mov eax, dword [ebp + 8]
mov ecx, 0x431bde83
mul ecx
shr edx, 0x12
add ebx, edx
adc edi, 0
jb 0x47e365
imul eax, dword [ebp + 8], 0x68c26139
xor ecx, ecx
ror eax, 6
cmp eax, 0x10c7
setae cl
xor eax, eax
add ebx, ecx
adc edi, 0
setb cl
neg edi
sbb eax, eax
test cl, cl
je 0x47e5dc
mov eax, 0xffffffff
mov ecx, dword [esi + 0x10]
push eax
push 1
push 0x4ebb3c
mov edi, dword [esi + 0x30]
push edi
call ecx
xor eax, eax
xchg byte [edi], al
mov ebx, dword [esi + 0x14]
jmp 0x47e812
mov ecx, dword [0x53c074]
cmp ecx, 0xffffffff
jne 0x47e3d2
mov dword [esi + 0x4c], 0xffffffff
lea ecx, [esi + 0x4c]
mov eax, dword [0x53c084]
push 0
push 0
push 0xc0000000
push ecx
call eax
test eax, eax
jne 0x47e832
mov ecx, dword [esi + 0x4c]
mov eax, 0xffffffff
lock cmpxchg dword [0x53c074], ecx
je 0x47e3d2
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x40], ecx
mov ecx, 0x3b9aca00
mul ecx
mov edi, eax
mov eax, dword [esi + 8]
mov dword [esi + 4], edx
mul ecx
mov ecx, edi
mov edi, eax
mov eax, ecx
mov ecx, 0xffffff9c
add edi, dword [esi + 4]
adc edx, 0
add eax, dword [ebp + 8]
adc edi, 0
mov dword [esi + 0x3c], eax
adc edx, 0
mov dword [esi + 0x58], edi
setb byte [esi + 8]
cmp ecx, eax
mov ecx, 0xffffffff
mov eax, 0
sbb ecx, edi
mov ecx, 0x31
sbb ecx, edx
movzx ecx, byte [esi + 8]
sbb eax, ecx
jb 0x47e5d7
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x54], edx
mov ebx, edx
mov dword [esi + 0x50], ecx
mov edx, ecx
add eax, 0x63
mov dword [esi + 4], eax
adc edi, 0
mov ecx, dword [esi + 4]
adc ebx, 0
mov dword [esi + 8], edi
adc edx, 0
mov dword [esi + 0xc], ebx
or edi, edx
mov dword [esi + 0x18], edx
or ecx, ebx
or ecx, edi
sete byte [esi + 0x10]
bsr ecx, ebx
bsr eax, edx
xor ecx, 0x1f
xor eax, 0x1f
add ecx, 0x20
test edx, edx
cmovne ecx, eax
bsr eax, dword [esi + 4]
bsr edi, dword [esi + 8]
xor eax, 0x1f
xor edi, 0x1f
add eax, 0x20
cmp dword [esi + 8], 0
cmovne eax, edi
mov edi, 0
add eax, 0x40
or ebx, edx
mov ebx, 0
mov edx, 0
cmovne eax, ecx
mov ecx, 0x79
sub ecx, eax
mov eax, 0x7f
sbb ebx, ebx
sbb edi, edi
sbb edx, edx
cmp eax, ecx
mov eax, 0
mov dword [esi + 0x28], edi
sbb eax, ebx
mov eax, 0
sbb eax, edi
mov eax, 0
mov edi, 0
sbb eax, edx
setb al
or al, byte [esi + 0x10]
mov eax, dword [esi + 8]
cmovne eax, edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
cmovne eax, edi
mov dword [esi + 0x1c], eax
jne 0x47e5e3
mov eax, ecx
mov dword [esi + 0x24], ecx
mov ecx, ebx
xor eax, 0x7f
or ecx, edx
or eax, dword [esi + 0x28]
or ecx, eax
mov eax, ebx
mov ebx, dword [esi + 0x14]
je 0x47e7a7
mov ecx, dword [esi + 4]
mov dword [esi + 0xb0], ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 8]
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 + 0x24]
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 + 0x34], ebx
mov dword [esi + 0x38], 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, ebx
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x20], edi
add ebx, 1
adc dword [esi + 0x2c], 0
adc dword [esi + 0x28], 0
adc edx, 0
jae 0x47e5eb
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
jmp 0x47e78f
jmp 0x47e7ad
or eax, ebx
jmp 0x47e36a
mov ebx, dword [esi + 0x14]
jmp 0x47e7a7
or dword [esi + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 8]
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, ebx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], ebx
mov ch, bl
shr al, 3
and ch, 7
and al, 0xf
mov cl, ch
movzx eax, al
mov ebx, dword [esi + eax + 0x88]
mov edi, dword [esi + eax + 0x8c]
mov dword [esi + 0x48], 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 + 8], ebx
mov ebx, dword [esi + 0x28]
mov eax, dword [esi + eax + 0x80]
mov dword [esi + 0x10], edi
mov edi, dword [esi + 0x2c]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
shrd eax, edx, cl
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x34]
nop word cs:[eax + eax]
nop
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edi
mov edi, dword [esi + 4]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0x44]
shld dword [esi + 0x10], edi, 1
shld edi, edx, 1
shld edx, ebx, 1
shld ebx, eax, 1
mov dword [esi + 8], edx
mov edx, dword [esi + 0x38]
mov dword [esi + 4], edi
mov edi, dword [esi + 0xc]
mov dword [esi + 0xc], 0
shld eax, edx, 1
or eax, edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x20]
shld edx, eax, 1
shld eax, ecx, 1
add ecx, ecx
or ecx, dword [esi + 0x18]
or edx, edi
or eax, edi
mov edi, dword [esi + 0x2c]
mov dword [esi + 0x38], edx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ecx
mov ecx, 0x63
cmp ecx, ebx
mov ecx, 0
sbb ecx, dword [esi + 8]
mov ecx, 0
sbb ecx, dword [esi + 4]
mov ecx, 0
sbb ecx, edx
sar ecx, 0x1f
mov eax, ecx
and ecx, 0x64
and eax, 1
sub ebx, ecx
sbb dword [esi + 8], 0
mov dword [esi + 0x18], eax
mov eax, edx
mov edx, dword [esi + 0x24]
mov dword [esi + 0x44], ebx
mov ebx, dword [esi + 0x28]
sbb dword [esi + 4], 0
sbb eax, 0
add edx, 0xffffffff
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x48]
adc edi, 0xffffffff
mov dword [esi + 0x24], edx
adc ebx, 0xffffffff
mov ecx, edi
adc eax, 0xffffffff
or edx, ebx
or ecx, eax
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x34]
or edx, ecx
mov ecx, dword [esi + 0x1c]
jne 0x47e6c0
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x14]
shld eax, ecx, 1
add ecx, ecx
or eax, dword [esi + 0xc]
or ecx, dword [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ecx
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
mov edi, dword [esi + 0x1c]
mov eax, 0
neg edi
sbb eax, dword [esi + 0x20]
cmp dword [esi + 0x3c], 0xffffff9d
sbb dword [esi + 0x58], 0xffffffff
sbb edx, 0x31
sbb ecx, 0
mov ecx, SysReAllocString
cmovb ecx, eax
mov eax, 0
cmovae edi, eax
mov dword [esi + 0x64], ecx
lea ecx, [esi + 0x60]
mov dword [esi + 0x60], edi
mov eax, dword [0x53c08c]
push ecx
push 0
mov edi, dword [esi + 0x30]
push edi
push dword [esi + 0x40]
call eax
test eax, eax
mov eax, 0
xchg byte [edi], al
je 0x47e812
cmp al, 1
jne 0x47e812
mov eax, dword [0x53c08c]
push 0
push 0
push dword [esi + 0x30]
push dword [esi + 0x40]
call eax
lock dec dword [ebx]
jne 0x47e81e
mov ecx, ebx
call fcn.0047b420
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], 0x4ebb68
mov dword [esi + 0x64], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x14], ebx
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, 0x4ebba0
mov dword [esi + 0x7c], fcn.0042ea40
mov dword [esi + 0x6c], 1
call fcn.004c8740
ud2