Function at 0x57b775
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 0x57b798
xor al, al
jmp 0x57bcbd
cmp dword [edi], 1
jne 0x57b791
mov eax, dword [esi]
cmp eax, 8
je 0x57b7a9
cmp eax, 9
jne 0x57b791
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 0x57b7df
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
jmp 0x57b822
mov eax, esi
call fcn.004b75a8
mov dword [esp + 0x40], eax
mov eax, esi
call fcn.004b75a8
mov ebx, eax
test ebx, ebx
je 0x57b80b
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 0x57b83f
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
jmp 0x57b882
mov eax, esi
call fcn.004b75ff
mov dword [esp + 0x50], eax
mov eax, esi
call fcn.004b75ff
mov ebx, eax
test ebx, ebx
je 0x57b86b
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
mov dword [esp + 0x30], eax
jl 0x57bb31
lea ecx, [esp + 0x60]
call fcn.00448cdf
test al, al
je 0x57b791
lea ecx, [esp + 0x74]
call fcn.00448cdf
test al, al
je 0x57b791
lea ecx, [esp + 0x40]
call fcn.00448cdf
test al, al
je 0x57b791
lea ecx, [esp + 0x50]
call fcn.00448cdf
test al, al
je 0x57b791
mov eax, dword [esp + 0x68]
mov ecx, eax
add eax, dword [esp + 0x6c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x7c]
mov ebx, eax
add eax, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x57ba60
add ecx, 3
mov dword [esp + 0x34], ecx
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x3c], ecx
neg ecx
lea eax, [eax + ecx*2]
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x24]
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
push edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
call fcn.004bd26d
mov esi, dword [esp + 0x34]
mov byte [ebx], al
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
add dword [esp + 0x14], edx
add dword [esp + 0x10], eax
add dword [esp + 0x18], ecx
push edx
call fcn.004bd26d
mov esi, dword [esp + 0x1c]
mov byte [ebx + 1], al
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
add dword [esp + 0x14], edx
add dword [esp + 0x10], eax
add dword [esp + 0x18], ecx
push edx
call fcn.004bd26d
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov byte [ecx], al
add esi, 3
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
add dword [esp + 0x14], edx
add dword [esp + 0x10], eax
add dword [esp + 0x18], ecx
push edx
call fcn.004bd26d
push dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push 2
pop esi
mov byte [ecx + 1], al
mov ecx, esi
call fcn.004bd28f
push dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov byte [ecx], al
mov ecx, esi
call fcn.004bd2c3
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x28]
inc dword [esp + 0x2c]
add dword [esp + 0x24], 6
add dword [esp + 0x34], 6
add dword [esp + 0x1c], 6
add dword [esp + 0x20], esi
add ebx, esi
dec dword [esp + 0x3c]
mov byte [ecx], al
jne 0x57b93b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x57bafc
mov esi, dword [esp + 0x24]
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
push edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
call fcn.004bd26d
mov esi, dword [esp + 0x1c]
mov byte [ebx], al
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
add dword [esp + 0x14], edx
add dword [esp + 0x10], eax
add dword [esp + 0x18], ecx
push edx
call fcn.004bd26d
mov ecx, dword [esp + 0x20]
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push dword [esp + 0x18]
mov byte [ecx], al
xor ecx, ecx
inc ecx
call fcn.004bd28f
mov ecx, dword [esp + 0x28]
push dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x18]
mov byte [ecx], al
xor ecx, ecx
inc ecx
call fcn.004bd2c3
mov ecx, dword [esp + 0x2c]
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 + 0x30], 2
add dword [esp + 0x58], eax
cmp dword [esp + 0x30], 2
jge 0x57b895
xor ebx, ebx
cmp dword [esp + 0x30], ebx
je 0x57bcbb
lea ecx, [esp + 0x60]
call fcn.00448cdf
test al, al
je 0x57b791
lea ecx, [esp + 0x74]
call fcn.00448cdf
test al, al
je 0x57b791
lea ecx, [esp + 0x40]
call fcn.00448cdf
test al, al
je 0x57b791
lea ecx, [esp + 0x50]
call fcn.00448cdf
test al, al
je 0x57b791
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x57bc6c
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x3c], ecx
neg ecx
lea eax, [eax + ecx*2]
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x20]
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
push edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
call fcn.004bd26d
mov esi, dword [esp + 0x20]
mov byte [ebx], al
add esi, 3
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
add dword [esp + 0x14], edx
add dword [esp + 0x10], eax
add dword [esp + 0x18], ecx
push edx
call fcn.004bd26d
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push dword [esp + 0x18]
xor ecx, ecx
inc ecx
mov byte [ebx + 1], al
call fcn.004bd28f
mov ecx, dword [esp + 0x30]
push dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x18]
mov byte [ecx], al
xor ecx, ecx
inc ecx
call fcn.004bd2c3
inc dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x2c]
add dword [esp + 0x20], 6
inc ebx
inc ebx
dec dword [esp + 0x3c]
mov byte [ecx], al
jne 0x57bbbb
mov eax, dword [esp + 0x38]
test eax, eax
je 0x57bcbb
mov esi, dword [esp + 0x20]
lea edi, [esp + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx esi, byte [esp + 0xe]
movzx edi, byte [esp + 0xd]
movzx ecx, byte [esp + 0xc]
push esi
mov eax, edi
call fcn.004bd26d
mov byte [ebx], al
movzx ebx, byte [esp + 0xc]
push ebx
push esi
xor ecx, ecx
mov edx, edi
call fcn.004bd28f
mov ecx, dword [esp + 0x30]
push edi
mov byte [ecx], al
push esi
xor ecx, ecx
mov edx, ebx
call fcn.004bd2c3
mov ecx, dword [esp + 0x2c]
mov byte [ecx], al
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4