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

Disassembly:
sub esp, 0x88
mov eax, dword [0x72b01c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x94]
push ebp
push esi
mov esi, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x40], edi
push dword [edi + 0x58]
push 0
push dword [edi + 0x5c]
call fcn.00598150
mov edx, dword [esp + 0xb4]
add esp, 0xc
cmp edx, 3
ja case.default.0x57c56d
jmp dword [edx*4 + 0x57d014]
mov ecx, 1
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], ecx
jmp 0x57c595
xor ecx, ecx
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], 1
mov ebp, 0xb
mov dword [esp + 0x70], 3
mov dword [esp + 0x38], ebp
mov dword [esp + 0x7c], 3
jmp 0x57c5df
mov dword [esp + 0x6c], 1
xor ecx, ecx
mov dword [esp + 0x78], 1
mov ebp, 3
mov dword [esp + 0x38], 3
mov dword [esp + 0x7c], 5
mov dword [esp + 0x70], 2
mov eax, dword [edi]
shl esi, 2
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x80], 4
mov dword [esp + 0x74], 0xc
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x84], 0
mov dword [esp + 0x50], eax
cmp edx, 2
je 0x57c666
cmp edx, 3
je 0x57c666
test ecx, ecx
jne 0x57c652
push dword [edi + 0x30]
lea eax, [esp + 0x54]
push 0xd
push esi
push ebp
push eax
call fcn.0057d580
add esp, 0x14
cmp dword [esp + 0xa8], 4
jne 0x57c666
push esi
push ebp
push dword [edi + 0x30]
lea eax, [esp + 0x5c]
push 0xd
push eax
call fcn.0057d580
add esp, 0x14
add esi, 4
cmp ebx, dword [esp + 0xa4]
jae 0x57cfd4
movzx ecx, word [ebx]
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edx
lea eax, [ecx - 3]
cmp eax, 0x9e
ja case.0x57c69c.4
movzx eax, byte [eax + 0x57d068]
jmp dword [eax*4 + 0x57d024]
test byte [esp + 0xb4], 1
je 0x57ce6c
mov eax, dword [edi + 0x24]
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57ce6c
or cl, ch
mov dword [esp + 0x30], 1
mov byte [eax], cl
mov eax, dword [edi + 0x24]
mov dword [esp + 0x48], eax
jmp 0x57ce6c
test byte [esp + 0xb4], 1
je 0x57c76d
cmp dword [edi + 0x74], edx
je 0x57c733
mov eax, dword [edi + 0x24]
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57c733
or cl, ch
mov dword [esp + 0x30], 1
mov byte [eax], cl
mov eax, dword [edi + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x40]
test eax, eax
je 0x57c76d
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57c76d
or cl, ch
mov byte [eax], cl
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0x40]
mov dword [esp + ecx*4 + 0x48], eax
inc ecx
mov dword [esp + 0x30], ecx
mov eax, dword [edi + 0x48]
test eax, eax
je 0x57c7a9
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57c7a9
or cl, ch
mov dword [esp + 0x24], 1
mov byte [eax], cl
mov eax, dword [edi + 0x48]
mov dword [esp + 0x88], eax
add ebx, 4
jmp 0x57ce6f
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0xc]
sar eax, 1
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x57c81d
sar eax, 2
mov dl, 1
mov ecx, eax
sar eax, 3
add eax, dword [edi + 0x5c]
and ecx, 7
shl dl, cl
mov cl, byte [eax]
test dl, cl
je 0x57c7f3
mov ecx, dword [esp + 0x28]
xor edx, edx
jmp 0x57c806
or cl, dl
mov edx, 1
mov byte [eax], cl
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, ebx
mov dword [esp + 0x18], edx
sub eax, ecx
mov ecx, dword [esp + 0x14]
add eax, 2
sar eax, 1
mov eax, dword [ecx + eax*4]
lea ebx, [ebx + eax*2]
add ebx, 4
jmp 0x57ce6f
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
mov dl, 1
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [edi + 0x5c]
and ecx, 7
shl dl, cl
mov cl, byte [eax]
test dl, cl
je 0x57c85c
xor edx, edx
add ebx, 4
mov dword [esp + 0x18], edx
jmp 0x57ce6f
or cl, dl
mov edx, 1
mov byte [eax], cl
add ebx, 4
mov dword [esp + 0x18], edx
jmp 0x57ce6f
movzx ecx, word [ebx + 4]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x13], 1
lea eax, [eax + ecx*8]
mov dword [esp + 0x88], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [edi + 0x5c]
and ecx, 7
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57c8c2
or cl, ch
mov dword [esp + 0x24], 2
mov byte [eax], cl
mov eax, dword [esp + 0x88]
add eax, 4
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x57c8ff
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57c8ff
or cl, ch
mov byte [eax], cl
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 0x48]
mov dword [esp + ecx*4 + 0x88], eax
inc ecx
mov dword [esp + 0x24], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x28]
cmp byte [ecx + eax], dl
jne 0x57c941
mov eax, dword [edi + 0x20]
mov byte [esp + 0x13], 1
lea eax, [eax + ecx*4]
mov dword [esp + 0x1c], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [edi + 0x5c]
and ecx, 7
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57c941
or cl, ch
mov edx, 1
mov byte [eax], cl
mov dword [esp + 0x18], edx
add ebx, 6
jmp 0x57ce6f
movzx ecx, word [ebx + 4]
mov dl, 1
mov eax, dword [edi + 0x24]
mov dword [esp + 0x2c], ecx
lea eax, [eax + ecx*8]
mov dword [esp + 0x88], eax
sar eax, 2
mov ecx, eax
sar eax, 3
and ecx, 7
shl dl, cl
mov byte [esp + 0x13], dl
mov edx, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
mov dword [esp + 0x14], edx
mov cl, byte [eax + edx]
test ch, cl
jne 0x57c9a8
or cl, ch
mov dword [esp + 0x24], 2
mov byte [eax + edx], cl
mov eax, dword [esp + 0x88]
mov edx, dword [edi + 0x5c]
add eax, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x57c9eb
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax + edx]
test ch, cl
jne 0x57c9e7
or cl, ch
mov byte [eax + edx], cl
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 0x48]
mov edx, dword [edi + 0x5c]
mov dword [esp + ecx*4 + 0x88], eax
inc ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov byte [esp + 0x13], 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
sar eax, 2
mov ecx, eax
sar eax, 3
and ecx, 7
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax + edx]
test ch, cl
je 0x57ca29
xor edx, edx
mov dword [esp + 0x28], 1
lea eax, [esp + 0x1c]
jmp 0x57ca46
or cl, ch
mov dword [esp + 0x28], 2
mov byte [eax + edx], cl
mov edx, 1
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x20]
mov byte [esp + 0x13], 1
mov dword [esp + 0x18], edx
lea edi, [eax + ecx*4]
mov eax, edi
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [esp + 0x14]
and ecx, 7
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57ca8c
mov edx, dword [esp + 0x28]
or cl, ch
mov byte [eax], cl
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [eax], edi
add ebx, 6
jmp 0x57ce6f
movzx eax, word [ebx + 2]
movzx eax, word [ebx + eax*2]
cmp eax, 0x7a
je 0x57caa6
cmp eax, 0x7b
jne 0x57cae3
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov byte [esp + 0x13], 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [edi + 0x5c]
and ecx, 7
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57cae3
or cl, ch
mov edx, 1
mov byte [eax], cl
mov dword [esp + 0x18], edx
add ebx, 4
jmp 0x57ce6f
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x57cb2c
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57cb2c
or cl, ch
mov edx, 1
mov byte [eax], cl
mov dword [esp + 0x18], edx
add ebx, 4
cmp dword [edi + 0x124], 0
mov dword [esp + 0x14], ebx
je 0x57ce73
mov ax, word [ebx - 2]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xd800
cmp ax, cx
jne 0x57ce73
jmp 0x57ce6c
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x57cb2c
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57cb2c
or cl, ch
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x20], eax
jmp 0x57cb28
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x57cc00
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57cc00
or cl, ch
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
add ebx, 6
jmp 0x57cb2f
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x57ce6c
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57ce6c
or cl, ch
mov byte [eax], cl
jmp 0x57ce63
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x57ce6c
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57ce6c
or cl, ch
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x20], eax
jmp 0x57ce68
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x57ccf6
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57ccf6
or cl, ch
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
add ebx, 4
jmp 0x57ce6f
cmp ecx, 0x70
jne 0x57cd0d
movzx eax, word [ebx + 2]
mov dword [esp + 0x14], eax
jmp 0x57cd15
mov dword [esp + 0x14], 0x11
mov eax, dword [edi + 0xc]
mov ecx, ebx
sub ecx, dword [edi + 8]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x57cda5
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 1
lea eax, [ebx + eax*2]
push eax
call fcn.00585390
add esp, 4
sub eax, 1
je 0x57cda0
sub eax, 1
jne 0x57cd90
mov eax, dword [esp + 0x28]
mov dl, 1
sar eax, 2
mov ecx, eax
sar eax, 3
add eax, dword [edi + 0x5c]
and ecx, 7
shl dl, cl
mov cl, byte [eax]
test dl, cl
jne 0x57cd90
or cl, dl
mov edx, 2
mov byte [eax], cl
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
lea ebx, [ebx + eax*2]
jmp 0x57ce6f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ebx, [ebx + eax*2]
jmp 0x57ce6f
mov edx, 1
mov eax, dword [esp + 0x14]
lea ebx, [ebx + eax*2]
jmp 0x57ce6f
test byte [esp + 0xb4], 1
je 0x57cdf0
mov eax, dword [edi + 0x40]
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57cdf0
or cl, ch
mov dword [esp + 0x30], 1
mov byte [eax], cl
mov eax, dword [edi + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x44]
test eax, eax
je 0x57ce2a
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57ce2a
or cl, ch
mov edx, 1
mov byte [eax], cl
mov eax, dword [edi + 0x44]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
movzx eax, word [ebx + 2]
lea ebx, [ebx + eax*2]
add ebx, 6
jmp 0x57ce6f
mov eax, dword [edi + 0x44]
sar eax, 2
mov ecx, eax
mov byte [esp + 0x13], 1
and ecx, 7
sar eax, 3
add eax, dword [edi + 0x5c]
mov ch, byte [esp + 0x13]
shl ch, cl
mov cl, byte [eax]
test ch, cl
jne 0x57ce6c
or cl, ch
mov byte [eax], cl
mov eax, dword [edi + 0x44]
mov dword [esp + 0x1c], eax
mov edx, 1
mov dword [esp + 0x18], edx
add ebx, 2
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xa8]
cmp eax, 2
je 0x57cee1
cmp eax, 3
je 0x57cee1
xor edi, edi
test edx, edx
jle 0x57cee4
mov ebx, dword [esp + 0x34]
nop
test ebx, ebx
jne 0x57ceb5
push dword [esp + edi*4 + 0x1c]
lea eax, [esp + 0x54]
push 0xd
push esi
push ebp
push eax
call fcn.0057d580
mov eax, dword [esp + 0xbc]
add esp, 0x14
cmp eax, 4
jne 0x57ced1
push esi
push ebp
push dword [esp + edi*4 + 0x24]
lea eax, [esp + 0x5c]
push 0xd
push eax
call fcn.0057d580
mov eax, dword [esp + 0xbc]
add esp, 0x14
inc edi
add esi, 4
cmp edi, dword [esp + 0x18]
jl 0x57ce90
mov ebx, dword [esp + 0x14]
jmp 0x57cee4
lea esi, [esi + edx*4]
cmp eax, 1
je 0x57cf57
cmp eax, 3
je 0x57cf57
xor edi, edi
cmp dword [esp + 0x24], edi
jbe 0x57cf67
mov ebx, dword [esp + 0x34]
nop word [eax + eax]
test ebx, ebx
jne 0x57cf28
push dword [esp + edi*4 + 0x88]
lea eax, [esp + 0x54]
push 0xd
push esi
push ebp
push eax
call fcn.0057d580
mov eax, dword [esp + 0xbc]
add esp, 0x14
cmp eax, 4
jne 0x57cf47
push esi
push ebp
push dword [esp + edi*4 + 0x90]
lea eax, [esp + 0x5c]
push 0xd
push eax
call fcn.0057d580
mov eax, dword [esp + 0xbc]
add esp, 0x14
inc edi
add esi, 4
cmp edi, dword [esp + 0x24]
jl 0x57cf00
mov ebx, dword [esp + 0x14]
jmp 0x57cf67
mov ecx, dword [esp + 0x24]
lea esi, [esi + ecx*4]
cmp eax, 1
je 0x57cffa
cmp eax, 4
je 0x57cffa
xor edi, edi
cmp dword [esp + 0x30], edi
jbe 0x57cfc3
mov ebx, dword [esp + 0x34]
nop dword [eax]
mov eax, dword [esp + edi*4 + 0x48]
test ebx, ebx
jne 0x57cf93
mov ecx, dword [esp + 0x38]
lea ebp, [ebx + 0xd]
mov edx, esi
jmp 0x57cfa0
mov ebp, dword [esp + 0x38]
mov edx, eax
mov ecx, 0xd
mov eax, esi
push eax
push ebp
push edx
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.0057d580
inc edi
add esp, 0x14
add esi, 4
cmp edi, dword [esp + 0x30]
jl 0x57cf80
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
cmp ebx, dword [esp + 0xa4]
jb 0x57c676
lea eax, [esp + 0x50]
push eax
call fcn.0057d170
mov ecx, dword [esp + 0x98]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00594d69
add esp, 0x88
ret
mov eax, dword [esp + 0x30]
lea esi, [esi + eax*4]
jmp 0x57cfc3
push ebx
push edi
call fcn.00589250
add esp, 8
mov ebx, eax
jmp 0x57cfc7