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

Disassembly:
sub esp, 0x6c
push ebx
xor eax, eax
push ebp
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x12c], ebx
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
jne 0x5a0741
lea edi, [esi + 0x128]
mov ebp, 0x1000
cmp dword [edi + 4], ebp
je 0x5a0741
mov eax, dword [edi]
cmp eax, ebx
je 0x5a0725
push eax
call fcn.005f7a6f
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], ebx
push ebp
call fcn.005f79ac
add esp, 4
cmp eax, ebx
jne 0x5a073c
push 1
push ebp
mov ecx, edi
call fcn.0051d347
mov dword [edi], eax
mov dword [edi + 4], ebp
mov ecx, dword [esi + 0x128]
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x12c]
mov dword [esp + 0x14], ebx
mov edi, dword [eax]
lea ebx, [esp + 0x38]
push ebx
lea ebp, [esi + 0x128]
lea ebx, [esp + 0x18]
push ebx
push ecx
push edx
push eax
mov eax, dword [edi + 0x2c]
call eax
cmp eax, 0x887a0003
jne 0x5a07a1
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00414d00
mov ecx, dword [ebp]
mov edx, dword [esi + 0x12c]
mov eax, dword [esi + 0x48]
mov edi, dword [eax]
lea ebx, [esp + 0x38]
push ebx
lea ebx, [esp + 0x18]
push ebx
push ecx
push edx
mov edx, dword [edi + 0x2c]
push eax
call edx
test eax, eax
jl 0x5a09d5
mov eax, dword [esi + 0x80]
test eax, eax
lea edi, [esi + 0x80]
mov dword [esp + 0x28], edi
je 0x5a07cb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x5a07e1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x7c], 0
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x94], edx
mov dword [esi + 0x98], ecx
cmp dword [esi + 0x84], 1
jne 0x5a0828
shr eax, 1
mov edx, eax
imul edx, ebx
lea edi, [esi + 0x130]
push edx
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0055a090
mov eax, dword [esi + 0x84]
sub eax, 1
mov edi, dword [edi]
je 0x5a08a6
sub eax, 1
je 0x5a085a
sub eax, 2
jne 0x5a0932
mov eax, dword [esp + 0x10]
test eax, eax
mov edx, dword [ebp]
jbe 0x5a0932
mov dword [esp + 0x18], eax
lea ecx, [ecx]
xor ecx, ecx
test ebx, ebx
jbe 0x5a0891
mov eax, dword [edx + ecx*4]
bswap eax
mov ebp, eax
shl ebp, 0x18
shr eax, 8
add ebp, eax
mov dword [edi], ebp
add ecx, 1
add edi, 4
cmp ecx, ebx
jb 0x5a0876
lea eax, [ebx*4]
add edx, eax
sub dword [esp + 0x18], 1
jne 0x5a0870
jmp 0x5a0932
mov ecx, dword [esp + 0x10]
mov ebp, dword [ebp]
lea eax, [ebx + 0x1f]
shr eax, 3
and eax, 0x1ffffffc
mov edx, eax
imul edx, ecx
test ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jbe 0x5a0932
mov dword [esp + 0x18], ecx
lea ecx, [ecx]
xor esi, esi
test ebx, ebx
jbe 0x5a0925
mov edx, dword [esp + 0x1c]
mov ecx, esi
and ecx, 7
mov eax, 0x80
sar eax, cl
mov ecx, esi
shr ecx, 3
add edx, ecx
mov dl, byte [edx + ebp]
and dl, al
neg dl
sbb edx, edx
and edx, 0xffffff
test byte [ecx + ebp], al
je 0x5a0907
sub edx, 0x1000000
bswap edx
mov eax, edx
mov ecx, eax
shl ecx, 0x18
shr eax, 8
add ecx, eax
mov dword [edi], ecx
add esi, 1
add edi, 4
cmp esi, ebx
jb 0x5a08d6
mov eax, dword [esp + 0x20]
add ebp, eax
sub dword [esp + 0x18], 1
jne 0x5a08d0
mov esi, dword [esp + 0x24]
push 0x2c
lea edx, [esp + 0x54]
push 0
push edx
call fcn.005f7e70
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0x130]
mov dword [esp + 0x60], eax
mov eax, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
add esp, 0xc
mov dword [esp + 0x34], eax
lea eax, [edx*4]
lea edi, [esi + 0x7c]
push edi
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x58]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x68], 0x1c
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 8
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x5a09d5
mov edx, dword [esp + 0x28]
mov esi, dword [esi + 0x4c]
mov eax, dword [edi]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x1c]
push edx
push 0
push eax
push esi
call ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret