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

Disassembly:
push 0xffffffffffffffff
push 0x64a16b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push edi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
cmp dword [esi + 0x70], 0
lea edi, [esi + 0x70]
jne 0x57241b
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
cmp byte [esi + 0x52], 0
jne 0x572426
cmp dword [esi + 0x48], 0
mov byte [esi + 0x78], 1
je 0x571b9f
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
mov ecx, esi
call edx
push 0x7c
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0062e530
mov cl, byte [esi + 0x76]
mov ebx, dword [esi + 0x6c]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
add esp, 0xc
neg cl
mov dword [esp + 0x5c], 0x7c
mov dword [esp + 0x60], 7
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], eax
sbb ecx, ecx
and ecx, 0x3800
add ebx, 0x3c
add ecx, 0x800
push ebx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x54], ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0xec], 0
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.005673d0
test eax, eax
jne 0x57241f
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
test al, al
je 0x57241f
mov eax, dword [esi + 0x6c]
mov edx, dword [eax + 0x24]
mov ecx, 8
sub ecx, dword [eax + 0x1c]
mov edi, 0x18
sub edi, dword [eax + 0x14]
mov ebp, 0x10
sub ebp, dword [eax + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xe0]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xd4]
cmp eax, 0x10
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xd8]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0xdc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edx
jne 0x572008
mov ebx, dword [esi + 0xa4]
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x572404
xor eax, eax
cmp dword [esi + 0x38], eax
mov byte [esp + 0x27], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
je 0x571d9f
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00612a1b
mov ecx, eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
add esp, 4
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x571d9b
jmp 0x571d14
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov ecx, dword [esp + 0x3c]
add eax, 4
mov dword [esp + 0x2c], eax
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x44]
mov ebx, edx
shl eax, cl
mov ecx, ebp
shr ebx, cl
mov ecx, dword [esp + 0x38]
and eax, dword [esp + 0x4c]
shl ebx, cl
mov ecx, edi
and ebx, dword [esp + 0x40]
or eax, ebx
mov ebx, edx
shr ebx, cl
mov ecx, dword [esp + 0x34]
shl ebx, cl
mov ecx, dword [esp + 0x28]
and ebx, dword [esp + 0x48]
or eax, ebx
cmp byte [esp + 0x27], 0
mov word [ecx], ax
je 0x571d78
shr edx, 0x18
cmp edx, 0xff
jge 0x571d78
movzx edx, ax
mov byte [esp + 0x27], 0
mov dword [esp + 0x20], edx
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 2
add eax, 1
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x571d10
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp byte [esi + 0x51], 0
je 0x571f84
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x571f84
xor ebp, ebp
cmp byte [esi + 0x77], 0
je 0x571e09
cmp dword [esi + 0x28], ebp
movzx edx, word [eax]
mov dword [esp + 0x20], edx
mov ecx, ebx
mov edi, eax
jle 0x571fcd
xor eax, eax
cmp dword [esi + 0x24], eax
jle 0x571deb
mov dx, word [edi]
mov word [ecx], dx
add eax, 1
add ecx, 2
add edi, 2
cmp eax, dword [esi + 0x24]
jl 0x571dd7
mov eax, dword [esi + 0x90]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [esi + 0x24]
add ebp, 1
cmp ebp, dword [esi + 0x28]
lea ecx, [ecx + eax*2]
jl 0x571dd0
jmp 0x571fcd
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
test eax, eax
mov edx, dword [esp + 0x1c]
jle 0x571f1b
lea esp, [esp]
mov eax, dword [ecx]
movzx edi, word [edx]
and eax, 0xff000000
add ecx, 4
add edx, 2
cmp eax, 0xff000000
jne 0x571e3e
cmp word [esp + 0x20], di
je 0x571e51
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
add ebp, 1
cmp ebp, eax
jl 0x571e20
jmp 0x571f1b
push 0x2000
call fcn.00612a1b
push 0x2000
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x3c], ebx
call fcn.0062e530
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x38]
mov edi, dword [esp + 0x2c]
add esp, 0x10
xor ebp, ebp
test ecx, ecx
jle 0x571eca
mov eax, dword [edx]
movzx ecx, word [edi]
shr eax, 0x18
add edx, 4
add edi, 2
test eax, eax
jle 0x571ebc
movzx ecx, cx
mov eax, ecx
shr eax, 5
and ecx, 0x8000001f
lea eax, [ebx + eax*4]
jns 0x571eaf
dec ecx
or ecx, 0xffffffe0
inc ecx
mov ebx, 1
shl ebx, cl
or dword [eax], ebx
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
add ebp, 1
cmp ebp, ecx
jl 0x571e85
xor edx, edx
lea esp, [esp]
mov eax, dword [ebx + edx*4]
cmp eax, 0xffff
je 0x571f03
xor ecx, ecx
lea esp, [esp]
mov edi, 1
shl edi, cl
test eax, edi
je 0x571ef5
add ecx, 1
cmp ecx, 0x20
jl 0x571ee0
jmp 0x571f03
mov eax, edx
shl eax, 5
add eax, ecx
movzx ecx, ax
mov dword [esp + 0x20], ecx
add edx, 1
cmp edx, 0x800
jl 0x571ed0
push ebx
call fcn.0062414c
mov ebx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x571fcd
mov edi, dword [esp + 0x1c]
mov ecx, ebx
xor ebx, ebx
cmp dword [esi + 0x28], ebx
mov ebp, eax
jle 0x571fcd
xor edx, edx
cmp dword [esi + 0x24], edx
jle 0x571f69
mov eax, dword [ebp]
shr eax, 0x18
add ebp, 4
cmp eax, 0xff
mov ax, word [esp + 0x20]
jl 0x571f58
mov ax, word [edi]
mov word [ecx], ax
add edx, 1
add ecx, 2
add edi, 2
cmp edx, dword [esi + 0x24]
jl 0x571f40
mov eax, dword [esi + 0x90]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [esi + 0x24]
add ebx, 1
cmp ebx, dword [esi + 0x28]
lea ecx, [ecx + eax*2]
jl 0x571f39
jmp 0x571fcd
test eax, eax
je 0x571fcd
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp dword [esi + 0x28], ebp
mov ecx, ebx
jle 0x571fcd
xor eax, eax
cmp dword [esi + 0x24], eax
jle 0x571fb4
lea esp, [esp]
mov dx, word [edi]
mov word [ecx], dx
add eax, 1
add ecx, 2
add edi, 2
cmp eax, dword [esi + 0x24]
jl 0x571fa0
mov eax, dword [esi + 0x90]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [esi + 0x24]
add ebp, 1
cmp ebp, dword [esi + 0x28]
lea ecx, [ecx + eax*2]
jl 0x571f95
mov eax, dword [esp + 0x1c]
push eax
call fcn.0062414c
add esp, 4
cmp byte [esi + 0x51], 0
je 0x572404
movzx eax, word [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 8
push eax
mov eax, dword [ecx + 0x74]
call eax
jmp 0x572404
cmp eax, 0x20
jne 0x57241f
mov ecx, dword [esi + 0xa4]
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x572404
cmp byte [esi + 0x51], 0
mov bl, 1
mov dword [esp + 0x20], 0
je 0x57234e
mov eax, dword [esi + 0x38]
test eax, eax
je 0x57234e
cmp byte [esi + 0x77], 0
je 0x572139
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x44]
mov ebx, eax
shl edx, cl
mov ecx, ebp
shr ebx, cl
mov ecx, dword [esp + 0x38]
and edx, dword [esp + 0x4c]
shl ebx, cl
mov ecx, edi
mov edi, dword [esp + 0x14]
shr eax, cl
mov ecx, dword [esp + 0x34]
and ebx, dword [esp + 0x40]
mov dword [esp + 0x14], 0
shl eax, cl
or edx, ebx
mov ebx, dword [esi + 0x38]
and eax, dword [esp + 0x48]
or edx, eax
cmp dword [esi + 0x28], 0
mov dword [esp + 0x20], edx
jle 0x57232b
nop
cmp dword [esi + 0x24], 0
mov dword [esp + 0x18], 0
jle 0x57210b
mov edi, edi
mov eax, dword [ebx]
mov ecx, dword [esp + 0x3c]
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x44]
add ebx, 4
add edi, 4
shl edx, cl
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, ebp
and edx, dword [esp + 0x4c]
mov ebp, eax
shr ebp, cl
mov ecx, dword [esp + 0x38]
shl ebp, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0x34]
and ebp, dword [esp + 0x40]
shl eax, cl
or edx, ebp
mov ebp, dword [esp + 0x1c]
and eax, dword [esp + 0x48]
or edx, eax
mov eax, dword [esp + 0x18]
mov dword [edi - 4], edx
add eax, 1
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
jl 0x5720b0
mov eax, dword [esi + 0x90]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, dword [esi + 0x24]
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
jl 0x5720a0
jmp 0x57232b
mov edx, dword [esi + 0x24]
imul edx, dword [esi + 0x28]
test edx, edx
mov edi, eax
jle 0x572173
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov ecx, dword [edi]
add edi, 4
test bl, bl
je 0x57216c
mov eax, ecx
shr eax, 0x18
cmp eax, 0xff
jge 0x57216c
xor bl, bl
mov dword [esp + 0x20], ecx
sub dword [esp + 0x18], 1
jne 0x572151
mov ecx, dword [esi + 0x38]
xor edi, edi
test edx, edx
jle 0x572262
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ebx, eax
and ebx, 0xff000000
add ecx, 4
cmp ebx, 0xff000000
jne 0x5721a2
and eax, 0xffffff
cmp edx, eax
je 0x5721b5
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x28]
add edi, 1
cmp edi, eax
jl 0x572184
jmp 0x572262
push 0x200000
call fcn.00612a1b
push 0x200000
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x3c], ebx
call fcn.0062e530
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x38]
add esp, 0x10
xor edx, edx
test ecx, ecx
jle 0x57221e
mov ecx, dword [edi]
mov eax, ecx
shr eax, 0x18
add edi, 4
test eax, eax
jle 0x572210
mov eax, ecx
shr eax, 5
and eax, 0x7ffff
lea eax, [ebx + eax*4]
and ecx, 0x1f
mov ebx, 1
shl ebx, cl
or dword [eax], ebx
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x28]
add edx, 1
cmp edx, ecx
jl 0x5721e5
xor edx, edx
mov eax, dword [ebx + edx*4]
cmp eax, 0xffff
je 0x572243
xor ecx, ecx
lea esp, [esp]
mov edi, 1
shl edi, cl
test eax, edi
je 0x572250
add ecx, 1
cmp ecx, 0x20
jl 0x572230
add edx, 1
cmp edx, 0x80000
jl 0x572220
jmp 0x572259
shl edx, 5
add edx, ecx
mov dword [esp + 0x20], edx
push ebx
call fcn.0062414c
add esp, 4
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x57232b
cmp dword [esi + 0x28], 0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], 0
jle 0x57232b
cmp dword [esi + 0x24], 0
mov dword [esp + 0x18], 0
jle 0x572302
mov eax, dword [ecx]
mov edx, eax
add ecx, 4
shr edx, 0x18
cmp edx, 0xff
mov dword [esp + 0x2c], ecx
jge 0x5722b3
mov eax, dword [esp + 0x20]
mov dword [edi], eax
jmp 0x5722ef
mov ecx, dword [esp + 0x3c]
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x44]
mov ebx, eax
shl edx, cl
mov ecx, ebp
shr ebx, cl
mov ecx, dword [esp + 0x38]
and edx, dword [esp + 0x4c]
shl ebx, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0x34]
and ebx, dword [esp + 0x40]
shl eax, cl
mov ecx, dword [esp + 0x2c]
or edx, ebx
and eax, dword [esp + 0x48]
or edx, eax
mov dword [edi], edx
mov eax, dword [esp + 0x18]
add eax, 1
add edi, 4
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
jl 0x572295
mov eax, dword [esi + 0x90]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, dword [esi + 0x24]
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
jl 0x572283
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push 8
push eax
mov eax, dword [ecx + 0x74]
call eax
jmp 0x572404
mov eax, dword [esi + 0x38]
test eax, eax
je 0x572404
cmp dword [esi + 0x28], 0
mov edi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
jle 0x572404
xor edx, edx
cmp dword [esi + 0x24], edx
jle 0x5723db
jmp 0x572380
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x3c]
mov ebx, eax
shr ebx, cl
mov ecx, dword [esp + 0x44]
add edx, 1
add edi, 4
shl ebx, cl
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, ebp
and ebx, dword [esp + 0x4c]
mov ebp, eax
shr ebp, cl
mov ecx, dword [esp + 0x38]
shl ebp, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0x34]
and ebp, dword [esp + 0x40]
shl eax, cl
or ebx, ebp
mov ebp, dword [esp + 0x1c]
and eax, dword [esp + 0x48]
or ebx, eax
mov dword [edi - 4], ebx
cmp edx, dword [esi + 0x24]
jl 0x572380
mov eax, dword [esi + 0x90]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, dword [esi + 0x24]
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
jl 0x572371
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x572428
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xdc
ret