Function at 0x5af910
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebp
push edi
mov edi, dword [esp + 0x28]
mov ebp, dword [edi]
mov al, byte [ebp + 0x23d]
mov byte [esp + 0x28], al
mov eax, dword [ebp + 0x1f8]
test ah, ah
jns 0x5af945
call fcn.005e0030
pop edi
mov dword [eax], 0xd
mov eax, 0xd
pop ebp
add esp, 0x1c
ret
push esi
mov esi, 1
push esi
push 4
push edi
call fcn.005ba9c0
add esp, 0xc
test eax, eax
je 0x5af969
call fcn.005e0030
mov eax, dword [eax]
pop esi
pop edi
pop ebp
add esp, 0x1c
ret
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x54]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x5af98c
mov dl, byte [edi + 0x1d9]
test dl, dl
jne 0x5af98c
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x5af99d
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
cmp dword [ebp + 0xec], esi
push ebx
mov ebx, dword [esp + 0x34]
jne 0x5af9c9
cmp dword [ebp + 0xe8], esi
jne 0x5af9c9
mov eax, dword [edi + 4]
cmp dword [eax], esi
jne 0x5af9c9
call fcn.005e0030
mov dword [eax], 0x87
jmp 0x5afe60
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp + 0xe4]
jb 0x5af9f4
ja 0x5af9e4
mov edx, dword [eax + 0x18]
cmp edx, dword [ebp + 0xe0]
jb 0x5af9f4
call fcn.005e0030
mov dword [eax], 0x88
jmp 0x5afe60
push edi
call fcn.005ba370
add esp, 4
test eax, eax
jne 0x5afe60
mov dword [esp + 0x20], eax
mov al, byte [ebp + 0x13]
test al, al
jbe 0x5afa58
xor esi, esi
mov eax, dword [ebp + 0x190]
push 0xffffffffffffffff
push 0xffffffffffffffff
add eax, esi
push ebx
push eax
call fcn.005ce830
mov ecx, dword [ebp + 0x190]
add esp, 8
push eax
push ebx
add ecx, esi
push ecx
push edi
call fcn.005ce680
add esp, 0x18
test al, al
jne 0x5afe60
mov eax, dword [esp + 0x20]
movzx edx, byte [ebp + 0x13]
inc eax
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x20], eax
jb 0x5afa12
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x118]
xor esi, esi
cmp eax, esi
jbe 0x5afbf1
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
jmp 0x5afa80
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.006cfb80
mov ecx, dword [ebp + 0x90]
mov ebx, dword [ebp + 0x94]
and eax, ecx
and edx, ebx
or eax, edx
je 0x5afbba
mov al, byte [esp + 0x30]
test al, al
je 0x5afb52
mov eax, dword [edi + 0x58]
test eax, eax
je 0x5afac7
mov ecx, dword [esp + 0x20]
cmp dword [ecx + eax], 0
jne 0x5afb52
mov edx, dword [ebp + 0x2b8]
add edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x20], 1
call fcn.005e94e0
mov eax, dword [ebp + 0x18c]
mov ecx, dword [esp + 0x18]
lea eax, [eax + ecx + 0x18]
mov ecx, dword [eax]
add esp, 4
inc ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x18c]
lea ebx, [edx + eax]
mov al, byte [ebx + 6]
test al, al
jns 0x5afb5c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push esi
push edi
call fcn.005ce5c0
add esp, 0x18
test eax, eax
je 0x5afb8d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5afc28
mov ebx, dword [ebp + 0x2b8]
mov edx, esi
imul edx, edx, 0x78
add edx, ebx
push edx
call fcn.005e9570
add esp, 4
jmp 0x5afc28
mov dword [esp + 0x1c], 0
jmp 0x5afaf5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push esi
push edi
call fcn.005c29d0
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
push edi
call dword [ebx + 0x34]
add esp, 0x28
test eax, eax
jne 0x5afc8d
mov ecx, dword [edi + 0xec]
mov eax, dword [esp + 0x1c]
and ecx, 0xffffefff
test eax, eax
mov dword [edi + 0xec], ecx
je 0x5afbba
mov ecx, dword [ebp + 0x2b8]
add ecx, dword [esp + 0x18]
push ecx
call fcn.005e9570
add esp, 4
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x118]
inc esi
add ebx, 0x158
add edx, 0x3c
add ecx, 0x78
cmp esi, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
jb 0x5afa80
mov ebx, dword [esp + 0x34]
mov eax, dword [ebp + 0x1e0]
test eax, eax
je 0x5afc08
push ebx
push edi
call eax
add esp, 8
mov dword [edi + 0xd8], eax
test byte [edi + 0xe8], 0x20
jne 0x5afebf
push ebx
push edi
call dword [ebp + 0x1cc]
add esp, 8
test eax, eax
je 0x5afeaa
call fcn.005e0030
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
call fcn.005e0030
cmp dword [eax], 0x79
je 0x5afcb0
call fcn.005e0030
cmp dword [eax], 0x87
je 0x5afcb0
call fcn.005e0030
cmp dword [eax], 0x9e
je 0x5afcb0
call fcn.005e0030
cmp dword [eax], 0x80
je 0x5afcb0
mov edx, dword [edi]
mov eax, dword [edx + 0x1b4]
push eax
push 0x7e
call fcn.005be240
mov eax, dword [edi]
mov cl, byte [eax + 0xb4]
add esp, 8
or cl, 2
mov byte [eax + 0xb4], cl
jmp 0x5afe47
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5afc28
mov edx, dword [ebp + 0x2b8]
mov eax, esi
imul eax, eax, 0x78
add eax, edx
push eax
call fcn.005e9570
add esp, 4
jmp 0x5afc28
mov eax, dword [edi + 0x58]
test eax, eax
je 0x5afd02
mov eax, dword [ebp + 0x118]
test eax, eax
mov dword [esp + 0x20], 0
jbe 0x5afd02
xor ebx, ebx
jmp 0x5afcd0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x5afce9
mov ecx, dword [eax + ebx]
add eax, ebx
test ecx, ecx
je 0x5afce9
push eax
call fcn.005e7e00
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x118]
inc eax
add ebx, 0x158
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x5afcd0
test esi, esi
mov dword [edi + 0x10c], esi
jbe 0x5afe47
mov eax, esi
imul eax, eax, 0x3c
mov dword [esp + 0x18], eax
mov ebx, esi
mov eax, esi
imul ebx, ebx, 0x78
imul eax, eax, 0x158
mov dword [esp + 0x20], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub ecx, 0x158
sub eax, 0x3c
dec esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov eax, 1
xor edx, edx
mov ecx, esi
sub ebx, 0x78
call fcn.006cfb80
and eax, dword [ebp + 0x90]
and edx, dword [ebp + 0x94]
or eax, edx
je 0x5afe25
mov al, byte [esp + 0x30]
test al, al
je 0x5afdd3
mov eax, dword [edi + 0x58]
test eax, eax
je 0x5afd88
mov ecx, dword [esp + 0x20]
cmp dword [ecx + eax], 0
jne 0x5afdd3
mov edx, dword [ebp + 0x2b8]
add edx, ebx
push edx
mov dword [esp + 0x20], 1
call fcn.005e94e0
add esp, 4
mov eax, dword [ebp + 0x18c]
mov ecx, dword [esp + 0x18]
mov dl, byte [eax + ecx + 6]
test dl, dl
jns 0x5afddd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push esi
push edi
call fcn.005ce620
add esp, 0x18
jmp 0x5afe08
mov dword [esp + 0x1c], 0
jmp 0x5afda1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push esi
push edi
call fcn.005c29d0
mov ecx, dword [esp + 0x28]
push eax
push ecx
push esi
push edi
call fcn.005bbee0
add esp, 0x28
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x5afe2f
test eax, eax
je 0x5afe25
mov edx, dword [ebp + 0x2b8]
add edx, ebx
push edx
call fcn.005e9570
add esp, 4
test esi, esi
ja 0x5afd30
jmp 0x5afe47
test eax, eax
je 0x5afe47
mov edx, dword [ebp + 0x2b8]
imul esi, esi, 0x78
add esi, edx
push esi
call fcn.005e9570
add esp, 4
mov dword [edi + 0xec], 0x405
call fcn.005e0030
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
mov dword [eax], ecx
call fcn.005e0030
mov esi, dword [eax]
mov eax, dword [0x840f14]
test eax, eax
jl 0x5afe8e
call fcn.005e0030
mov edx, dword [eax]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push ebx
push edi
push 1
call fcn.005c06b0
add esp, 0x18
push 1
push edi
call fcn.005ba1d0
add esp, 8
call fcn.005e0030
pop ebx
mov dword [eax], esi
mov eax, esi
pop esi
pop edi
pop ebp
add esp, 0x1c
ret
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xd8]
mov ecx, dword [eax + 0x28]
mov ebx, dword [esp + 0x34]
add ecx, edx
mov dword [eax + 0x28], ecx
mov eax, dword [ebp + 0x11c]
test eax, eax
je 0x5afef7
push ebx
push edi
call fcn.005c3440
mov ecx, dword [edi]
mov esi, dword [ecx + 0x5c]
add esp, 8
cmp esi, edx
ja 0x5afef7
jb 0x5afee5
mov ecx, dword [ecx + 0x58]
cmp ecx, eax
jae 0x5afef7
push ebx
push edi
call fcn.005c3440
mov ecx, dword [edi]
mov dword [ecx + 0x58], eax
add esp, 8
mov dword [ecx + 0x5c], edx
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x24]
mov dword [edi + 0xec], 0x407
inc dword [eax]
mov eax, dword [esp + 0x28]
mov dword [edi + 0xa0], edx
mov dword [edi + 0xa4], eax
mov eax, dword [0x840f14]
test eax, eax
jl 0x5aff37
mov ecx, dword [esp + 0x28]
push 0
push ecx
push edx
push ebx
push edi
push 1
call fcn.005c06b0
add esp, 0x18
push 1
push edi
call fcn.005ba1d0
mov eax, dword [edi + 0x8c]
add esp, 8
test eax, eax
je 0x5aff5f
mov ecx, dword [edi + 0x60]
push ecx
call eax
add esp, 4
mov dword [edi + 0x8c], 0
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x1c
ret