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

Disassembly:
sub esp, 0x184
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x58], ebp
lea esi, [ebp + 4]
mov dword [esp + 0x54], esi
test esi, esi
jne 0x477942
call fcn.00609380
nop
int3
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x198]
add ebp, 0x1c
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 4]
mov eax, dword [ebp + 4]
sub ebx, dword [edi + 0x2c]
sub eax, dword [ebp + 0x2c]
cmp ebx, eax
jle 0x4779f3
push ebx
mov ecx, ebp
call fcn.00470d30
cmp ebx, 4
jb 0x4779d9
shr ebx, 1
mov eax, 0x1f
add ebx, 8
mov edi, 0xfc000000
bsr ecx, ebx
mov dword [esp + 0x64], ecx
setne dl
sub eax, ecx
shl eax, 0x1a
test dl, dl
cmovne edi, eax
lea eax, [ebx - 1]
sar edi, 0x1f
mov ebx, 0x20
bsr edx, eax
mov eax, 0x1f
not edi
mov dword [esp + 0x138], edx
setne cl
sub eax, edx
test cl, cl
mov edx, ebx
mov ecx, ebx
cmovne edx, eax
mov eax, 1
sub ecx, edx
and ecx, edi
mov edi, dword [esp + 0x198]
shl eax, cl
jmp 0x4779de
mov eax, 1
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x4779e9
cmp ecx, eax
jge 0x4779f3
mov ecx, ebp
mov dword [ebp + 0x38], eax
call fcn.00470760
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x198]
add ebx, 0x58
mov edi, dword [edi + 4]
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 4]
sub edi, dword [ecx + 0x2c]
sub eax, dword [ebx + 0x2c]
cmp edi, eax
jle 0x477aa1
push edi
mov ecx, ebx
call fcn.0044bd30
cmp edi, 4
jb 0x477a87
shr edi, 1
mov eax, 0x1f
add edi, 8
bsr ecx, edi
mov dword [esp + 0x13c], ecx
setne dl
sub eax, ecx
shl eax, 0x1a
mov ecx, 0xfc000000
test dl, dl
cmovne ecx, eax
lea eax, [edi - 1]
sar ecx, 0x1f
mov edi, 0x1f
bsr eax, eax
not ecx
mov dword [esp + 0x140], eax
setne dl
sub edi, eax
mov dword [esp + 0x10], edi
test dl, dl
mov edi, 0x20
mov eax, edi
cmovne eax, dword [esp + 0x10]
sub edi, eax
mov eax, 1
and ecx, edi
shl eax, cl
jmp 0x477a8c
mov eax, 1
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x477a97
cmp ecx, eax
jge 0x477aa1
mov ecx, ebx
mov dword [ebx + 0x38], eax
call fcn.00470340
mov ebx, dword [esp + 0x198]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 1
mov dword [esp + 0x8c], 0xffffffff
cmp dword [ebx + 0x20], 0
lea edi, [ebx + 0xc]
mov eax, edi
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x94], 0
jge 0x477aff
call fcn.00609320
nop
int3
cmp dword [eax + 0x14], 0
je 0x477b11
lea ecx, [esp + 0x80]
call fcn.00410370
movups xmm0, xmmword [esp + 0x80]
mov edx, dword [ebx + 0x20]
mov ecx, edx
and ecx, 0x1f
mov dword [esp + 0x38], ebx
movups xmmword [esp + 0x3c], xmm0
or ebx, 0xffffffff
mov dword [esp + 0x10], edx
movq xmm0, qword [esp + 0x90]
movq qword [esp + 0x4c], xmm0
mov eax, dword [esp + 0x50]
movups xmm0, xmmword [esp + 0x38]
mov dword [esp + 0x108], eax
mov eax, edx
sar eax, 5
mov dword [esp + 0x98], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x9c], eax
mov eax, ebx
shl eax, cl
mov dword [esp + 0xa4], eax
mov eax, edx
movups xmmword [esp + 0xf0], xmm0
and eax, 0xffffffe0
mov dword [esp + 0xa0], edi
movq xmm0, qword [esp + 0x48]
movq qword [esp + 0x100], xmm0
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
test edx, edx
jns 0x477bbc
call fcn.00609320
nop
int3
cmp edx, dword [edi + 0x14]
je 0x477bcd
lea ecx, [esp + 0x98]
call fcn.00410370
movups xmm0, xmmword [esp + 0x98]
mov edi, dword [esp + 0x198]
mov esi, dword [esp + 0x1c]
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x38], edi
movq xmm0, qword [esp + 0xa8]
movq qword [esp + 0x4c], xmm0
movups xmm0, xmmword [esp + 0x38]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x180], eax
movups xmmword [esp + 0x168], xmm0
movq xmm0, qword [esp + 0x48]
movq qword [esp + 0x178], xmm0
nop
mov edx, dword [esp + 0x104]
mov ecx, dword [esp + 0xf0]
cmp edx, dword [esp + 0x17c]
jne 0x477c54
mov eax, dword [esp + 0xfc]
cmp eax, dword [esp + 0x174]
jne 0x477c54
cmp ecx, dword [esp + 0x168]
je 0x477f31
imul eax, edx, 0x34
add eax, dword [ecx]
mov ecx, ebp
movups xmm0, xmmword [eax]
lea ebx, [eax + 0x10]
lea eax, [esp + 0x184]
push eax
lea eax, [esp + 0x30]
push eax
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x18c], xmm0
call fcn.004630a0
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x477c94
lea edi, [eax + eax*2]
shl edi, 4
add edi, dword [ebp]
jmp 0x477c96
xor edi, edi
lea eax, [edi + 0x10]
neg edi
sbb edi, edi
and edi, eax
je 0x477d42
mov eax, dword [edi + 0x10]
cmp eax, dword [ebx + 0x14]
jne 0x477f29
mov ebp, dword [edi]
mov byte [edi + 0x14], 1
cmp ebp, ebx
je 0x477d0e
mov eax, dword [ebp]
test eax, eax
je 0x477ccb
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [ebx]
mov dword [ebp], eax
mov dword [ebx], 0
mov eax, dword [ebx + 4]
mov dword [ebp + 4], eax
mov ecx, dword [ebx + 8]
mov dword [ebp + 8], ecx
cmp eax, dword [ebx + 4]
jne 0x477cec
cmp ecx, dword [ebx + 8]
je 0x477d00
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0
push eax
call fcn.00609010
add esp, 4
nop
int3
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x10]
or ebx, 0xffffffff
mov dword [edi + 0xc], eax
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0xf8]
lea ecx, [esp + 0xf4]
not eax
and dword [esp + 0x100], eax
call fcn.00410370
jmp 0x477c20
push ebx
call fcn.00451fa0
add esp, 4
mov dword [esp + 0x6c], eax
lea edi, [eax + 0xc]
mov dword [esp + 0x68], edi
test edi, edi
jne 0x477d6e
call fcn.0060adb0
nop
int3
push edi
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.00410040
mov ebp, dword [esp + 0x78]
add esp, 0xc
mov eax, dword [esp + 0x68]
mov edi, ebp
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], edi
test ebp, ebp
je 0x477dac
lock inc dword [ebp + 4]
mov ebp, dword [esp + 0x6c]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x158], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], ecx
mov byte [esp + 0x164], 1
test ebp, ebp
je 0x477e01
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [ebp + 4], eax
jne 0x477e01
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax]
mov eax, ebx
lock xadd dword [ebp + 8], eax
jne 0x477e01
mov eax, dword [ebp]
mov ecx, ebp
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xe0]
push eax
call fcn.0045b1c0
mov ebx, dword [esp + 0xe4]
mov ebp, dword [esp + 0x10]
test ebx, ebx
je 0x477e59
movups xmm0, xmmword [esp + 0x38]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], edi
test edi, edi
je 0x477e37
lock inc dword [edi + 4]
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x20], eax
mov byte [ebx + 0x24], 1
mov dword [ebx + 0x28], 0xffffffff
jmp 0x477e5b
xor ebx, ebx
push dword [ebx + 0xc]
push dword [ebx + 4]
call fcn.00449e80
add esp, 8
push 0
push ecx
mov ecx, dword [esp + 0xe8]
mov edx, esp
push ebx
push eax
lea eax, [esp + 0x154]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.00461560
lea eax, [esp + 0xe8]
mov ecx, esi
push eax
call fcn.00438f70
mov ebx, dword [esp + 0xec]
test ebx, ebx
je 0x477ec3
mov dword [ebx], ebp
mov dword [ebx + 4], edi
test edi, edi
je 0x477eb1
lock inc dword [edi + 4]
movups xmm0, xmmword [esp + 0x38]
movups xmmword [ebx + 8], xmm0
mov dword [ebx + 0x18], 0xffffffff
jmp 0x477ec5
xor ebx, ebx
push 0
push dword [ebx]
call fcn.00449e80
add esp, 8
push 0
push ecx
mov ecx, dword [esp + 0xf0]
mov edx, esp
push ebx
push eax
lea eax, [esp + 0x15c]
mov dword [edx], ecx
mov ecx, esi
push eax
call fcn.00460850
or ebx, 0xffffffff
test edi, edi
je 0x477d1d
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x477d1d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x477d1d
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x477d1d
or ebx, 0xffffffff
jmp 0x477d21
mov ecx, dword [esp + 0x198]
call fcn.00471360
cmp dword [ebp + 0x20], 0
lea eax, [ebp + 0xc]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0xffffffff
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
jge 0x477f96
call fcn.00609320
nop
int3
cmp dword [eax + 0x14], 0
je 0x477fa8
lea ecx, [esp + 0xb0]
call fcn.00410370
movups xmm0, xmmword [esp + 0xb0]
mov edi, dword [ebp + 0x20]
lea edx, [ebp + 0xc]
mov ecx, edi
mov dword [esp + 0x38], ebp
movups xmmword [esp + 0x3c], xmm0
and ecx, 0x1f
mov dword [esp + 0xd0], edx
movq xmm0, qword [esp + 0xc0]
movq qword [esp + 0x4c], xmm0
mov eax, dword [esp + 0x50]
movups xmm0, xmmword [esp + 0x38]
mov dword [esp + 0x124], eax
mov eax, edi
sar eax, 5
mov dword [esp + 0xc8], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0xcc], eax
mov eax, edi
movups xmmword [esp + 0x10c], xmm0
and eax, 0xffffffe0
shl ebx, cl
movq xmm0, qword [esp + 0x48]
movq qword [esp + 0x11c], xmm0
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], eax
test edi, edi
jns 0x47804d
call fcn.00609320
nop
int3
cmp edi, dword [edx + 0x14]
je 0x478069
lea ecx, [esp + 0xc8]
call fcn.00410370
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
nop dword [eax]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x10c]
cmp eax, dword [esp + 0xd8]
jne 0x478098
cmp dword [esp + 0x118], esi
jne 0x478098
cmp ecx, ebp
je 0x4783ab
lea ebx, [eax + eax*2]
shl ebx, 4
add ebx, dword [ecx]
cmp byte [0x700579], 0
mov dword [esp + 0x64], ebx
je 0x47838a
mov edi, dword [ebx]
xor edx, edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
test edi, edi
je 0x478123
cmp word [edi], dx
je 0x478123
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4780d3
sub ecx, ebp
sar ecx, 1
lea ebp, [ecx + 1]
test ebp, ebp
jle 0x4780f7
push ebp
lea ecx, [esp + 0x24]
call fcn.0040ce40
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x28]
jle 0x47810e
push edx
lea ecx, [esp + 0x24]
call fcn.0040cde0
lea eax, [ebp*2]
push eax
push edi
push dword [esp + 0x28]
call fcn.004263f0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00482790
mov eax, dword [esp + 0x2c]
add esp, 8
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
cmp eax, ebp
je 0x47814c
add eax, ebp
cmp eax, 1
jmp 0x47818d
cmp eax, 1
jle 0x478368
mov eax, dword [esp + 0x20]
mov ecx, edi
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x478186
test dx, dx
je 0x478182
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x478186
add eax, 4
add ecx, 4
test dx, dx
jne 0x478160
xor eax, eax
jmp 0x47818b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x478368
cmp ebp, 1
jg 0x4781ae
mov eax, 0x60f5ec
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
jmp 0x4781d5
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00468800
mov ecx, eax
call fcn.00463680
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x128], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x130], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x134], eax
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x130], ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.004630a0
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
je 0x478224
lea ebp, [eax + eax*2]
mov eax, dword [esp + 0x14]
shl ebp, 4
add ebp, dword [eax]
jmp 0x478226
xor ebp, ebp
lea eax, [ebp + 0x10]
neg ebp
sbb ebp, ebp
and ebp, eax
je 0x478368
mov eax, dword [ebx + 0x20]
cmp eax, dword [ebp + 0x10]
jne 0x478368
mov byte [ebx + 0x24], 1
mov ecx, dword [ebp]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x2c], ebx
mov edi, dword [ecx + 4]
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x148], edi
jne 0x478287
cmp dword [ebx + 8], 0
mov dword [ebx + 4], 0
je 0x478354
push 0
mov ecx, ebx
call fcn.0040ce40
jmp 0x478354
mov edx, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], edx
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [edi + 1]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], eax
cmp edi, ecx
jg 0x47830a
mov ebx, dword [ebx]
add edi, edi
push edi
push edx
push ebx
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
add esp, 0xc
mov word [ebx + edi], ax
mov ebx, dword [esp + 0x34]
sub ebx, dword [esp + 0x30]
je 0x478354
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 4]
mov edx, eax
sub edx, dword [esp + 0x10]
sub edx, ebx
je 0x4782fc
mov ecx, dword [edi]
lea eax, [edx + edx]
mov edx, dword [esp + 0x10]
push eax
lea eax, [edx + ebx]
lea eax, [ecx + eax*2]
push eax
lea eax, [ecx + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi + 4]
add esp, 0xc
sub eax, ebx
mov ecx, edi
mov dword [edi + 4], eax
call fcn.00412d40
jmp 0x478354
mov dword [ebx + 4], 0
xor ecx, ecx
mov edx, dword [ebx + 8]
cmp edx, eax
je 0x478328
push eax
mov ecx, ebx
call fcn.0040ce40
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea eax, [edi + 1]
add eax, ecx
mov dword [ebx + 4], eax
cmp eax, edx
jle 0x47833c
push ecx
mov ecx, ebx
call fcn.0040cde0
mov ebx, dword [ebx]
add edi, edi
push edi
push dword [esp + 0x20]
push ebx
call fcn.005f7171
add esp, 0xc
xor eax, eax
mov word [ebx + edi], ax
mov ecx, dword [esp + 0x64]
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x74]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x1c], eax
test edi, edi
je 0x478375
push edi
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x478386
push eax
call fcn.0043f8f0
add esp, 4
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x110]
not eax
and dword [esp + 0x11c], eax
call fcn.00410370
jmp 0x478070
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4783ba
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x19c], 0
je 0x4783cd
mov ecx, dword [esp + 0x58]
call fcn.00460370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x184
ret 8