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

Disassembly:
sub esp, 0x184
mov eax, dword fs:[0x2c]
mov edx, dword [0x757724]
push ebx
push ebp
push esi
mov edx, dword [eax + edx*4]
mov ebp, ecx
mov eax, dword [0x6e16e0]
push edi
mov dword [esp + 0x58], ebp
cmp eax, dword [edx + 8]
jg 0x4778da
lea esi, [ebp + 4]
mov dword [esp + 0x54], esi
test esi, esi
jne 0x476e42
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 0x476ef3
push ebx
mov ecx, ebp
call fcn.00470d30
cmp ebx, 4
jb 0x476ed9
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 0x476ede
mov eax, 1
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x476ee9
cmp ecx, eax
jge 0x476ef3
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 0x476fa1
push edi
mov ecx, ebx
call fcn.0044bd30
cmp edi, 4
jb 0x476f87
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 0x476f8c
mov eax, 1
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x476f97
cmp ecx, eax
jge 0x476fa1
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 0x476fff
call fcn.00609320
nop
int3
cmp dword [eax + 0x14], 0
je 0x477011
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 0x4770bc
call fcn.00609320
nop
int3
cmp edx, dword [edi + 0x14]
je 0x4770cd
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 0x477154
mov eax, dword [esp + 0xfc]
cmp eax, dword [esp + 0x174]
jne 0x477154
cmp ecx, dword [esp + 0x168]
je 0x477431
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 0x477194
lea edi, [eax + eax*2]
shl edi, 4
add edi, dword [ebp]
jmp 0x477196
xor edi, edi
lea eax, [edi + 0x10]
neg edi
sbb edi, edi
and edi, eax
je 0x477242
mov eax, dword [edi + 0x10]
cmp eax, dword [ebx + 0x14]
jne 0x477429
mov ebp, dword [edi]
mov byte [edi + 0x14], 1
cmp ebp, ebx
je 0x47720e
mov eax, dword [ebp]
test eax, eax
je 0x4771cb
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 0x4771ec
cmp ecx, dword [ebx + 8]
je 0x477200
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 0x477120
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 0x47726e
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 0x4772ac
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 0x477301
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [ebp + 4], eax
jne 0x477301
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax]
mov eax, ebx
lock xadd dword [ebp + 8], eax
jne 0x477301
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 0x477359
movups xmm0, xmmword [esp + 0x38]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], edi
test edi, edi
je 0x477337
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 0x47735b
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 0x4773c3
mov dword [ebx], ebp
mov dword [ebx + 4], edi
test edi, edi
je 0x4773b1
lock inc dword [edi + 4]
movups xmm0, xmmword [esp + 0x38]
movups xmmword [ebx + 8], xmm0
mov dword [ebx + 0x18], 0xffffffff
jmp 0x4773c5
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 0x47721d
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x47721d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x47721d
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x47721d
or ebx, 0xffffffff
jmp 0x477221
mov ecx, dword [esp + 0x198]
call fcn.00471360
cmp byte [0x700579], 0
mov esi, dword [esp + 0x54]
je 0x4778af
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 0x4774a7
call fcn.00609320
nop
int3
cmp dword [eax + 0x14], 0
je 0x4774b9
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 0x47755e
call fcn.00609320
nop
int3
cmp edi, dword [edx + 0x14]
je 0x47757a
lea ecx, [esp + 0xc8]
call fcn.00410370
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x10]
nop
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x10c]
cmp eax, dword [esp + 0xd8]
jne 0x4775a8
cmp dword [esp + 0x118], esi
jne 0x4775a8
cmp ecx, ebp
je 0x4778ab
lea ebx, [eax + eax*2]
mov dword [esp + 0x20], 0
shl ebx, 4
xor edx, edx
add ebx, dword [ecx]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov ebp, dword [ebx]
test ebp, ebp
je 0x477623
cmp word [ebp], dx
je 0x477623
mov ecx, ebp
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4775d7
sub ecx, edi
sar ecx, 1
lea edi, [ecx + 1]
test edi, edi
jle 0x4775fb
push edi
lea ecx, [esp + 0x24]
call fcn.0040ce40
mov edx, dword [esp + 0x24]
lea eax, [edx + edi]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x28]
jle 0x477612
push edx
lea ecx, [esp + 0x24]
call fcn.0040cde0
lea eax, [edi + edi]
push eax
push ebp
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 0x47764c
add eax, ebp
cmp eax, 1
jmp 0x47768d
cmp eax, 1
jle 0x477868
mov eax, dword [esp + 0x20]
mov ecx, edi
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x477686
test dx, dx
je 0x477682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x477686
add eax, 4
add ecx, 4
test dx, dx
jne 0x477660
xor eax, eax
jmp 0x47768b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x477868
cmp ebp, 1
jg 0x4776ae
mov eax, 0x60f5ec
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
jmp 0x4776d5
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 0x477724
lea ebp, [eax + eax*2]
mov eax, dword [esp + 0x14]
shl ebp, 4
add ebp, dword [eax]
jmp 0x477726
xor ebp, ebp
lea eax, [ebp + 0x10]
neg ebp
sbb ebp, ebp
and ebp, eax
je 0x477868
mov eax, dword [ebx + 0x20]
cmp eax, dword [ebp + 0x10]
jne 0x477868
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 0x477787
cmp dword [ebx + 8], 0
mov dword [ebx + 4], 0
je 0x477854
push 0
mov ecx, ebx
call fcn.0040ce40
jmp 0x477854
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 0x47780a
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 0x477854
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 4]
mov edx, eax
sub edx, dword [esp + 0x10]
sub edx, ebx
je 0x4777fc
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 0x477854
mov dword [ebx + 4], 0
xor ecx, ecx
mov edx, dword [ebx + 8]
cmp edx, eax
je 0x477828
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 0x47783c
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 0x477875
push edi
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x477886
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x110]
not eax
and dword [esp + 0x11c], eax
call fcn.00410370
mov ebp, dword [esp + 0x14]
jmp 0x477580
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4778ba
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x19c], 0
je 0x4778cd
mov ecx, dword [esp + 0x58]
call fcn.00460370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x184
ret 8
push 0x6e16e0
call fcn.005f48b1
add esp, 4
cmp dword [0x6e16e0], 0xffffffff
jne 0x476e30
push str.LEETIFYUnlocalized
call fcn.00490650
push eax
call fcn.004a9300
push 0x6e16e0
mov byte [0x6e16dd], al
call fcn.005f4867
add esp, 0xc
jmp 0x476e30