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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x4c], 0xffffffff
mov edi, dword [ebx + 8]
mov esi, dword [ebx]
mov dword [esp + 0x18], 0
mov dword [esp + 0x40], 1
movzx eax, byte [edi + 0x10]
mov dword [esp + 0x54], edi
mov dword [esp + 0x34], esi
lea ecx, [eax + eax*8]
mov eax, dword [esi + 4]
lea ecx, [ecx + 1]
test byte [eax + ecx*8 + 0x28], 2
lea edx, [eax + ecx*8]
mov ecx, dword [edx + 0x10]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
je 0x5a6d38
mov ebx, dword [edx + 0x44]
jmp 0x5a6de8
test byte [ecx + 0x1c], 0x80
je 0x5a6d46
mov ebx, dword [ecx + 8]
jmp 0x5a6de8
lea eax, [esp + 0x4c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], eax
xorps xmm0, xmm0
lea eax, [esp + 0x48]
movlpd qword [esp + 0x97], xmm0
mov dword [esp + 0x68], eax
mov eax, 3
or dword [esp + 0x98], eax
mov word [esp + 0x90], ax
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x9f], xmm0
mov byte [esp + 0xa7], 0
mov dword [esp + 0x92], 0x10001
mov byte [esp + 0x96], 5
mov dword [esp + 0x6c], ecx
mov ax, word [ecx + 0x26]
mov word [esp + 0x48], ax
xor eax, eax
mov word [esp + 0x4a], ax
test byte [edx + 0x28], 1
jne 0x5a6de4
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x74], eax
lea ebx, [esp + 0x60]
mov eax, ecx
mov dword [esp + 0x1c], ebx
mov ecx, 0x1c
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0xc], 0
jne 0x5a6f63
mov eax, 0x1020
test word [esi + 0x28], ax
jne 0x5a6f63
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x8000
or eax, 0
je 0x5a6f63
test byte [edx + 0x28], 0x4b
jne 0x5a6f63
test byte [ecx], 0x80
jne 0x5a6f63
test byte [edx + 0x24], 0x10
jne 0x5a6f63
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
movzx eax, word [eax + 0x26]
push eax
mov dword [esp + 0x14], eax
call fcn.004f72f0
movzx eax, ax
add esp, 4
mov dword [esp + 0x20], eax
nop dword [eax]
cmp esi, dword [esp + 0x24]
jae 0x5a6f5f
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
and ecx, dword [esi + 0x20]
and eax, dword [esi + 0x24]
or ecx, eax
jne 0x5a6f49
push ecx
push ecx
push dword [esp + 0x1c]
push esi
call fcn.0059a300
add esp, 0x10
test eax, eax
je 0x5a6f49
mov eax, dword [edi + 0x38]
mov ecx, 1
mov edx, dword [esp + 0x38]
mov word [edi + 0x18], cx
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x20], 0
mov dword [eax], esi
mov eax, dword [esp + 0x10]
add eax, ecx
mov word [edi + 0x12], ax
cmp byte [edx + 0x2b], 2
je 0x5a6ef6
mov edx, dword [esp + 0x44]
test dword [edx], 0x4000
jne 0x5a6ef6
add eax, 0x1c
jmp 0x5a6ef9
add eax, 0xffffffe7
movzx eax, ax
mov word [edi + 0x12], ax
test ax, ax
jns 0x5a6f0b
xor eax, eax
mov word [edi + 0x12], ax
mov eax, 0x2b
push eax
push ecx
mov word [edi + 0x16], ax
call fcn.00565ed0
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x14], ax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x2c], 0x4000
or ecx, dword [esi + 0x20]
or eax, dword [esi + 0x24]
push edi
push dword [ebp + 8]
mov dword [edi], ecx
mov dword [edi + 4], eax
call fcn.005a8f30
add esp, 0x10
mov dword [esp + 0x18], eax
jmp 0x5a6f4d
mov eax, dword [esp + 0x18]
add esi, 0x30
test eax, eax
je 0x5a6e80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x5a73a2
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x5a6f93
push eax
push dword [esp + 0x40]
movzx eax, byte [edx + 0x24]
push eax
push dword [edx + 0x2c]
call fcn.005aba90
add esp, 0x10
test eax, eax
je 0x5a7374
test dword [ebx + 0x38], 0x200
jne 0x5a7374
mov eax, dword [ebx + 8]
xor ecx, ecx
movzx eax, word [eax]
mov dword [edi + 0x18], ecx
mov word [edi + 0x1c], cx
mov dword [edi + 0x30], ecx
mov byte [edi + 0x11], cl
mov word [edi + 0x12], cx
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x16], ax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ecx
mov dword [edi + 0x20], ebx
push dword [eax + 0x2c]
push ebx
push dword [ebp + 8]
call fcn.0051ecf0
mov edx, dword [ebx + 0x38]
add esp, 0xc
mov ecx, edx
mov esi, eax
and ecx, 3
mov dword [esp + 0x24], esi
cmp cl, 3
jne 0x5a7040
mov eax, dword [esp + 0x40]
xor edx, edx
test esi, esi
movzx ecx, al
mov esi, dword [esp + 0x20]
push esi
push edi
push dword [esp + 0x44]
cmovne edx, ecx
mov dword [edi + 0x2c], 0x100
lea eax, [esi + 0x10]
mov byte [edi + 0x11], dl
mov word [edi + 0x14], ax
call fcn.005a91e0
push edi
push dword [ebp + 8]
call fcn.005a8f30
add esp, 0x14
mov word [edi + 0x16], si
test eax, eax
jne 0x5a73a2
jmp 0x5a7347
test dl, 0x20
je 0x5a705f
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
jmp 0x5a7109
mov edx, dword [esp + 0x14]
mov esi, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x24]
and ecx, dword [edx + 0x3c]
and esi, dword [edx + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x5a70ab
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x44]
push ebx
push dword [eax]
call fcn.005a9930
mov ecx, dword [esp + 0x44]
add esp, 0x18
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [edi + 0x2c], 0x200
test esi, esi
jne 0x5a70be
cmp ecx, 0x80000000
je 0x5a70d5
mov eax, dword [ebx + 0x38]
test eax, 0x1000
je 0x5a7103
test eax, 0x800
jne 0x5a7103
mov eax, esi
or eax, ecx
je 0x5a7109
push dword [edx + 0x2c]
push ebx
push dword [esp + 0x3c]
call fcn.005a6800
add esp, 0xc
test eax, eax
je 0x5a70f5
or dword [edi + 0x2c], eax
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
jmp 0x5a7110
mov eax, esi
or eax, ecx
jne 0x5a7110
mov dword [edi + 0x2c], 0x240
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x5a717e
mov eax, dword [esp + 0x44]
test byte [eax], 0x80
jne 0x5a717e
cmp dword [ebx + 0x24], edx
jne 0x5a717e
mov eax, dword [esp + 0x14]
test byte [eax + 0x28], 2
jne 0x5a717e
mov eax, esi
or eax, ecx
jne 0x5a7347
test byte [ebx + 0x38], 4
jne 0x5a7347
mov ecx, dword [esp + 0x38]
mov ax, word [ebx + 0x30]
cmp ax, word [ecx + 0x28]
jge 0x5a7347
mov eax, dword [esp + 0x34]
test byte [eax + 0x28], 4
jne 0x5a7347
cmp byte [0x645f3f], dl
je 0x5a7347
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x20
jne 0x5a7347
mov eax, dword [esp + 0x40]
xor ecx, ecx
movzx eax, al
test edx, edx
cmovne ecx, eax
mov byte [edi + 0x11], cl
movsx ecx, word [ebx + 0x30]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x38]
cdq
movsx ecx, word [ecx + 0x28]
idiv ecx
mov ecx, dword [esp + 0x20]
inc eax
add eax, ecx
or esi, dword [esp + 0x10]
mov word [edi + 0x14], ax
je 0x5a7309
lea eax, [ecx + 0x10]
xor ecx, ecx
movzx esi, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x5c], ecx
jle 0x5a729d
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x24], edx
nop dword [eax + eax]
mov ebx, dword [eax + 0x68]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x50]
add ebx, edx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
mov dword [esp + 0xac], 0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
mov dword [esp + 0x58], edi
mov dword [esp + 0xb0], 0x4fa4f0
test eax, eax
je 0x5a725a
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0058fb20
mov ecx, dword [esp + 0x18]
add esp, 8
mov edx, dword [esp + 0x24]
cmp word [esp + 0xc0], 0
jne 0x5a7295
movzx eax, word [ebx + 8]
test ax, ax
jg 0x5a7272
add esi, eax
jmp 0x5a727c
dec esi
test byte [ebx + 0xc], 0x82
je 0x5a727c
sub esi, 0x13
mov eax, dword [esp + 0x34]
inc ecx
add edx, 0x30
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
cmp ecx, dword [eax + 0x5c]
jl 0x5a71f0
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x1c]
movzx eax, word [edi + 0x14]
movsx ecx, ax
movsx edx, si
cmp ax, si
jl 0x5a72d9
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x5a72b9
movzx eax, word [edi + 0x14]
jmp 0x5a7301
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x5a72c7
movzx eax, word [edi + 0x14]
inc eax
jmp 0x5a72fe
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [edi + 0x14]
add ax, cx
jmp 0x5a72fe
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x5a72e5
movzx eax, si
jmp 0x5a7301
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x5a72f2
inc esi
movzx eax, si
jmp 0x5a7301
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, si
movzx eax, ax
mov ecx, dword [esp + 0x20]
mov word [edi + 0x14], ax
push ecx
push edi
push dword [esp + 0x44]
call fcn.005a91e0
mov eax, dword [esp + 0x20]
add esp, 0xc
test byte [eax + 0x24], 0x10
je 0x5a7327
cmp dword [ebx + 0x28], 0
jne 0x5a7337
push edi
push dword [ebp + 8]
call fcn.005a8f30
add esp, 8
mov ecx, eax
jmp 0x5a733b
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov word [edi + 0x16], ax
test ecx, ecx
jne 0x5a73a0
mov esi, dword [ebp + 8]
push 0
push ebx
push dword [esp + 0x1c]
mov byte [esi + 0x10], 0
push esi
call fcn.005a73b0
add esp, 0x10
mov dword [esp + 0x18], eax
cmp byte [esi + 0x10], 1
jne 0x5a7378
mov ecx, dword [esp + 0x44]
or dword [ecx], 0x100
jmp 0x5a7378
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test byte [edx + 0x28], 2
je 0x5a7386
xor ebx, ebx
jmp 0x5a7389
mov ebx, dword [ebx + 0x14]
inc dword [esp + 0x40]
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x5a6f67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret