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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, eax
call fcn.004b8e19
test al, al
jne 0x57c2b5
xor al, al
jmp 0x57c95c
cmp dword [edi], 2
jne 0x57c2ae
mov eax, dword [esi]
cmp eax, 8
je 0x57c2c6
cmp eax, 9
jne 0x57c2ae
xor ebx, ebx
mov eax, edi
push ebx
lea edi, [esp + 0x64]
call fcn.004b8aab
push esi
lea eax, [esp + 0x78]
push eax
call fcn.00448cc3
mov eax, esi
call fcn.004b6aa5
test al, al
jne 0x57c2fc
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
jmp 0x57c33f
mov eax, esi
call fcn.004b75a8
mov dword [esp + 0x40], eax
mov eax, esi
call fcn.004b75a8
mov ebx, eax
test ebx, ebx
je 0x57c328
mov ecx, esi
call fcn.004b8e93
mov edi, eax
call fcn.004b7929
dec edi
imul eax, edi
add eax, ebx
mov dword [esp + 0x44], eax
call fcn.004b7929
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
xor ebx, ebx
mov eax, esi
call fcn.004b6aa5
test al, al
jne 0x57c35c
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
jmp 0x57c39f
mov eax, esi
call fcn.004b75ff
mov dword [esp + 0x50], eax
mov eax, esi
call fcn.004b75ff
mov ebx, eax
test ebx, ebx
je 0x57c388
mov ecx, esi
call fcn.004b8e93
mov edi, eax
call fcn.004b794a
dec edi
imul eax, edi
add eax, ebx
mov dword [esp + 0x54], eax
call fcn.004b794a
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 2
push 7
mov dword [esp + 0x38], eax
pop esi
jl 0x57c74c
lea ecx, [esp + 0x60]
call fcn.00448cdf
test al, al
je 0x57c2ae
lea ecx, [esp + 0x74]
call fcn.00448cdf
test al, al
je 0x57c2ae
lea ecx, [esp + 0x40]
call fcn.00448cdf
test al, al
je 0x57c2ae
lea ecx, [esp + 0x50]
call fcn.00448cdf
test al, al
je 0x57c2ae
mov eax, dword [esp + 0x68]
mov ebx, eax
add eax, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
add eax, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x57c629
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x3c], ecx
neg ecx
lea eax, [eax + ecx*2]
mov dword [esp + 0x38], eax
mov ax, word [ebx]
mov word [esp + 0x10], ax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 0x11]
mov edi, dword [esp + 0x10]
shr edx, 0xd
and edx, esi
or edx, eax
mov eax, dword [esp + 0x10]
shr eax, 3
movzx eax, al
shr edi, 9
and edi, 3
or edi, eax
mov al, byte [esp + 0x10]
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
push edx
mov dword [esp + 0x20], edx
and ecx, esi
or ecx, eax
mov eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
call fcn.004bd139
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
mov ax, word [ebx + 2]
mov word [esp + 0x10], ax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 0x11]
mov edi, dword [esp + 0x10]
shr edx, 0xd
and edx, esi
or edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x1c], edx
shr eax, 3
movzx eax, al
shr edi, 9
and edi, 3
or edi, eax
mov al, byte [esp + 0x10]
add dword [esp + 0x14], edi
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
push edx
and ecx, esi
or ecx, eax
add dword [esp + 0x1c], ecx
mov eax, edi
call fcn.004bd139
mov ecx, dword [esp + 0x20]
mov byte [ecx + 1], al
mov eax, dword [esp + 0x24]
mov ax, word [eax]
mov word [esp + 0x10], ax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 0x11]
mov edi, dword [esp + 0x10]
shr edx, 0xd
and edx, esi
or edx, eax
mov eax, dword [esp + 0x10]
shr eax, 3
movzx eax, al
shr edi, 9
and edi, 3
or edi, eax
mov al, byte [esp + 0x10]
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
and ecx, esi
or ecx, eax
add dword [esp + 0x1c], edx
add dword [esp + 0x14], edi
add dword [esp + 0x18], ecx
push edx
mov eax, edi
call fcn.004bd139
mov ecx, dword [esp + 0x28]
mov byte [ecx], al
mov eax, dword [esp + 0x24]
mov ax, word [eax + 2]
mov word [esp + 0x10], ax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x11]
mov edx, eax
shr edx, 0xd
and edx, esi
or edx, ecx
mov ecx, dword [esp + 0x10]
shr ecx, 3
add dword [esp + 0x1c], edx
shr eax, 9
movzx ecx, cl
and eax, 3
or eax, ecx
mov edi, eax
mov al, byte [esp + 0x10]
add dword [esp + 0x14], edi
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
push edx
and ecx, esi
or ecx, eax
add dword [esp + 0x1c], ecx
mov eax, edi
call fcn.004bd139
push dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 2
pop edi
mov byte [ecx + 1], al
mov ecx, edi
call fcn.004bd15b
push dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov byte [ecx], al
mov ecx, edi
call fcn.004bd192
mov ecx, dword [esp + 0x30]
inc dword [esp + 0x2c]
inc dword [esp + 0x30]
add dword [esp + 0x24], 4
add dword [esp + 0x20], edi
add dword [esp + 0x28], edi
add ebx, 4
dec dword [esp + 0x3c]
mov byte [ecx], al
jne 0x57c452
mov eax, dword [esp + 0x38]
test eax, eax
je 0x57c717
mov ax, word [ebx]
mov word [esp + 0x10], ax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 0x11]
mov edi, dword [esp + 0x10]
shr edx, 0xd
and edx, esi
or edx, eax
mov eax, dword [esp + 0x10]
shr eax, 3
movzx eax, al
shr edi, 9
and edi, 3
or edi, eax
mov al, byte [esp + 0x10]
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
push edx
mov ebx, edx
and ecx, esi
or ecx, eax
mov eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
call fcn.004bd139
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
mov eax, dword [esp + 0x24]
mov ax, word [eax]
mov word [esp + 0x10], ax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 0x11]
mov edi, dword [esp + 0x10]
shr edx, 0xd
and edx, esi
or edx, eax
mov eax, dword [esp + 0x10]
shr eax, 3
movzx eax, al
shr edi, 9
and edi, 3
or edi, eax
mov al, byte [esp + 0x10]
add dword [esp + 0x14], edi
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
push edx
add ebx, edx
and ecx, esi
or ecx, eax
add dword [esp + 0x1c], ecx
mov eax, edi
call fcn.004bd139
mov ecx, dword [esp + 0x28]
push dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov byte [ecx], al
xor ecx, ecx
push ebx
inc ecx
call fcn.004bd15b
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov byte [ecx], al
xor ecx, ecx
push ebx
inc ecx
call fcn.004bd192
mov ecx, dword [esp + 0x30]
mov byte [ecx], al
mov eax, dword [esp + 0x6c]
add dword [esp + 0x68], eax
mov eax, dword [esp + 0x80]
add dword [esp + 0x7c], eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x34], 2
add dword [esp + 0x58], eax
cmp dword [esp + 0x34], 2
jge 0x57c3b5
xor ebx, ebx
cmp dword [esp + 0x34], ebx
je 0x57c95a
lea ecx, [esp + 0x60]
call fcn.00448cdf
test al, al
je 0x57c2ae
lea ecx, [esp + 0x74]
call fcn.00448cdf
test al, al
je 0x57c2ae
lea ecx, [esp + 0x40]
call fcn.00448cdf
test al, al
je 0x57c2ae
lea ecx, [esp + 0x50]
call fcn.00448cdf
test al, al
je 0x57c2ae
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x57c8e2
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x3c], ecx
neg ecx
lea eax, [eax + ecx*2]
mov dword [esp + 0x38], eax
mov ax, word [ebx]
mov word [esp + 0x10], ax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 0x11]
mov edi, dword [esp + 0x10]
shr edx, 0xd
and edx, esi
or edx, eax
mov eax, dword [esp + 0x10]
shr eax, 3
movzx eax, al
shr edi, 9
and edi, 3
or edi, eax
mov al, byte [esp + 0x10]
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
push edx
mov dword [esp + 0x20], edx
and ecx, esi
or ecx, eax
mov eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
call fcn.004bd139
mov ecx, dword [esp + 0x28]
mov byte [ecx], al
mov ax, word [ebx + 2]
mov word [esp + 0x10], ax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 0x11]
mov edi, dword [esp + 0x10]
shr edx, 0xd
and edx, esi
or edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x1c], edx
shr eax, 3
movzx eax, al
shr edi, 9
and edi, 3
or edi, eax
mov al, byte [esp + 0x10]
add dword [esp + 0x14], edi
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
push edx
and ecx, esi
or ecx, eax
add dword [esp + 0x1c], ecx
mov eax, edi
call fcn.004bd139
mov ecx, dword [esp + 0x28]
push dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push dword [esp + 0x20]
mov byte [ecx + 1], al
xor ecx, ecx
inc ecx
call fcn.004bd15b
mov ecx, dword [esp + 0x34]
push dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov byte [ecx], al
xor ecx, ecx
inc ecx
call fcn.004bd192
mov ecx, dword [esp + 0x30]
inc dword [esp + 0x34]
inc dword [esp + 0x30]
add dword [esp + 0x28], 2
add ebx, 4
dec dword [esp + 0x3c]
mov byte [ecx], al
jne 0x57c7d6
mov eax, dword [esp + 0x38]
test eax, eax
je 0x57c95a
mov ax, word [ebx]
mov word [esp + 0x10], ax
mov edi, dword [esp + 0x10]
movzx eax, byte [esp + 0x11]
mov ebx, dword [esp + 0x10]
shr edi, 0xd
and edi, esi
or edi, eax
mov eax, dword [esp + 0x10]
shr eax, 3
movzx eax, al
shr ebx, 9
and ebx, 3
or ebx, eax
mov al, byte [esp + 0x10]
movzx ecx, al
shr cl, 2
shl al, 3
movzx eax, al
push edi
and ecx, esi
or ecx, eax
mov eax, ebx
mov esi, ecx
call fcn.004bd139
mov ecx, dword [esp + 0x28]
push esi
mov byte [ecx], al
push edi
xor ecx, ecx
mov edx, ebx
call fcn.004bd15b
mov ecx, dword [esp + 0x34]
push ebx
mov byte [ecx], al
push edi
xor ecx, ecx
mov edx, esi
call fcn.004bd192
mov ecx, dword [esp + 0x30]
mov byte [ecx], al
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4