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

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
xor eax, eax
mov dword [esp + 0x48], edx
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
mov edx, 0x10169070
lea eax, [esp + 0x50]
xor ebp, ebp
push eax
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x20], ebx
call fcn.1003df80
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1005afc9
mov eax, dword [esp + 0x54]
cmp eax, 0x774f4646
je 0x1005afc4
cmp eax, 0x74746366
je 0x1005afc4
mov edx, dword [esp + 0x58]
cmp edx, dword [esi + 4]
jne 0x1005afc4
mov eax, dword [esp + 0x5c]
test ax, ax
je 0x1005afc4
movzx ecx, ax
mov dword [esp + 0x20], ecx
lea eax, [ecx + ecx*4]
shl eax, 2
mov dword [esp + 0x3c], eax
add eax, 0x2c
mov dword [esp + 0x24], eax
cmp eax, edx
jae 0x1005afc4
mov eax, ecx
shl eax, 4
mov dword [esp + 0x34], eax
lea ecx, [eax + 0xc]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], ecx
cmp ecx, eax
jae 0x1005afc4
test al, 3
jne 0x1005afc4
cmp dword [esp + 0x68], ebp
jne 0x1005afd0
cmp dword [esp + 0x6c], ebp
jne 0x1005afc4
cmp dword [esp + 0x70], ebp
je 0x1005afdc
mov eax, 8
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
cmp dword [esp + 0x6c], ebp
je 0x1005afdc
cmp dword [esp + 0x70], ebp
je 0x1005afc4
cmp dword [esp + 0x74], ebp
jne 0x1005afe8
cmp dword [esp + 0x78], ebp
jne 0x1005afc4
push edi
lea eax, [esp + 0x3c]
mov edx, ecx
push eax
mov ecx, ebx
call fcn.1003e2a0
mov edi, dword [esp + 0x3c]
mov ebx, eax
test edi, edi
jne 0x1005b819
lea edx, [edi + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, edi
mov edi, dword [edi + 4]
call edi
mov dword [esp + 0x48], eax
mov ebp, eax
test eax, eax
jne 0x1005b025
lea edi, [eax + 0x40]
jmp 0x1005b819
mov edi, dword [esp + 0x24]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [esp + 0x18], eax
xor ecx, ecx
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
mov eax, edi
test eax, eax
je 0x1005b04d
mov dword [esp + 0x18], ebp
inc ecx
shr eax, 1
jne 0x1005b048
mov ebp, dword [esp + 0x58]
dec ecx
mov eax, ebp
mov dword [esp + 0x44], ecx
shr eax, 0x18
mov edx, 1
mov byte [ebx], al
mov eax, ebp
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ebp
shr eax, 8
mov byte [ebx + 2], al
mov eax, ebp
mov byte [ebx + 3], al
mov eax, dword [esp + 0x60]
shr eax, 8
mov byte [ebx + 4], al
mov eax, dword [esp + 0x60]
shl edx, cl
shl edx, 4
sub dword [esp + 0x38], edx
mov byte [ebx + 5], al
mov eax, edx
shr eax, 8
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
mov edx, ecx
mov eax, edx
mov byte [ebx + 9], dl
mov edx, dword [esp + 0x38]
shr eax, 8
mov byte [ebx + 8], al
mov eax, edx
shr eax, 8
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], dl
test edi, edi
je 0x1005b163
lea eax, [edi + edi*2]
shl eax, 3
mov dword [esp + 0x44], eax
mov edx, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
mov ebp, eax
mov edi, 0x40
xor eax, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
cmovne edi, eax
je 0x1005b0fb
push dword [esp + 0x44]
push eax
push ebp
call fcn.10120e50
add esp, 0xc
jmp 0x1005b107
mov dword [esp + 0x10], ebp
test edi, edi
jne 0x1005b7fc
mov eax, dword [esp + 0x24]
shl eax, 2
mov dword [esp + 0x44], eax
mov edx, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
xor ecx, ecx
mov dword [esp + 0x14], eax
test eax, eax
mov edi, 0x40
cmovne edi, ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
je 0x1005b150
push dword [esp + 0x44]
push 0
push eax
call fcn.10120e50
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x1005b173
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
test edi, edi
je 0x1005b173
mov edx, ebp
jmp 0x1005b755
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x40]
mov ecx, esi
call fcn.1003de20
mov edi, eax
test edi, edi
jne 0x1005b751
mov edi, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
test edi, edi
je 0x1005b31a
lea edi, [ebp + 8]
nop dword [eax + eax]
mov ebp, dword [esi + 0x20]
xor ecx, ecx
mov edx, ebp
lea eax, [edx + 3]
cmp eax, dword [esi + 0x24]
jae 0x1005b1d1
movzx eax, byte [ebp]
add edx, 4
shl eax, 8
movzx ecx, byte [edx - 3]
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], edx
mov dword [edi - 8], ecx
xor ecx, ecx
mov ebp, dword [esi + 0x20]
mov edx, ebp
lea eax, [edx + 3]
cmp eax, dword [esi + 0x24]
jae 0x1005b208
movzx eax, byte [ebp]
add edx, 4
shl eax, 8
movzx ecx, byte [edx - 3]
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], edx
mov dword [edi - 4], ecx
xor ecx, ecx
mov ebp, dword [esi + 0x20]
mov edx, ebp
lea eax, [edx + 3]
cmp eax, dword [esi + 0x24]
jae 0x1005b23f
movzx eax, byte [ebp]
add edx, 4
shl eax, 8
movzx ecx, byte [edx - 3]
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], edx
mov dword [edi], ecx
xor ecx, ecx
mov ebp, dword [esi + 0x20]
mov edx, ebp
lea eax, [edx + 3]
cmp eax, dword [esi + 0x24]
jae 0x1005b275
movzx ecx, byte [ebp]
add edx, 4
shl ecx, 8
movzx eax, byte [edx - 3]
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], edx
mov dword [edi + 4], ecx
xor ecx, ecx
mov ebp, dword [esi + 0x20]
mov edx, ebp
lea eax, [edx + 3]
cmp eax, dword [esi + 0x24]
jae 0x1005b2ac
movzx ecx, byte [ebp]
add edx, 4
shl ecx, 8
movzx eax, byte [edx - 3]
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], edx
mov eax, dword [edi - 8]
mov dword [edi + 8], ecx
lea ecx, [edi - 8]
cmp eax, dword [esp + 0x34]
jbe 0x1005b2e6
mov ebp, dword [esp + 0x1c]
add edi, 0x18
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + eax*4], ecx
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x24]
jl 0x1005b1a0
mov edi, dword [esp + 0x24]
jmp 0x1005b31e
cmp dword [esi + 0x14], 0
je 0x1005b302
mov edx, dword [esi]
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x1005b2fc
mov ecx, eax
mov eax, dword [eax + 8]
call eax
mov dword [esi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov edi, 8
jmp 0x1005b751
mov ebp, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0
je 0x1005b33a
mov edx, dword [esi]
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x1005b334
mov ecx, eax
mov eax, dword [eax + 8]
call eax
mov dword [esi], 0
push 0x1005af00
push 4
push edi
push ebp
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.1012c830
mov ebp, dword [esp + 0x3c]
xor eax, eax
mov edx, dword [esp + 0x38]
add esp, 0x10
mov dword [esp + 0x3c], eax
test edi, edi
je 0x1005b3da
nop dword [eax + eax]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + eax*4]
mov ecx, dword [edi + 4]
cmp ecx, edx
jne 0x1005b310
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x5c]
cmp edx, eax
ja 0x1005b310
sub eax, edx
cmp ecx, eax
ja 0x1005b310
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x64]
cmp ecx, eax
ja 0x1005b310
sub eax, ecx
cmp ebp, eax
ja 0x1005b310
cmp edx, ecx
ja 0x1005b310
lea eax, [edx + 3]
mov dword [edi + 0x14], ebp
mov edx, dword [esp + 0x28]
and eax, 0xfffffffc
add edx, eax
lea eax, [ecx + 3]
and eax, 0xfffffffc
mov dword [esp + 0x28], edx
add ebp, eax
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x24]
jl 0x1005b370
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1005b418
cmp eax, edx
jne 0x1005b310
mov edi, dword [esp + 0x70]
add eax, edi
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
ja 0x1005b310
add edx, edi
jmp 0x1005b41c
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x1005b442
add edx, 3
and edx, 0xfffffffc
cmp eax, edx
jne 0x1005b310
mov edi, dword [esp + 0x7c]
add eax, edi
cmp eax, ecx
ja 0x1005b310
add edx, edi
mov eax, dword [esp + 0x64]
cmp ebp, eax
jne 0x1005b310
cmp edx, ecx
jne 0x1005b310
mov ebp, ebx
test eax, eax
js 0x1005b7f2
je 0x1005b4fd
mov edx, dword [esp + 0x2c]
push ebx
push eax
mov eax, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [eax + 0xc]
call eax
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x1005b48b
lea edi, [eax + 0x40]
mov ebx, ebp
jmp 0x1005b751
mov eax, dword [esp + 0x34]
xor edi, edi
mov ecx, dword [esp + 0x64]
mov ebp, ebx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
cmp ecx, dword [esp + 0x2c]
jle 0x1005b4f7
mov eax, ecx
mov ecx, dword [esp + 0x2c]
sub eax, ecx
push eax
push edi
lea eax, [ebx + ecx]
push eax
call fcn.10120e50
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov ebp, ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jmp 0x1005b524
xor edi, edi
mov ecx, ebp
jmp 0x1005b520
mov eax, dword [esp + 0x20]
mov edx, ebx
mov ecx, eax
mov eax, dword [eax + 8]
call eax
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov edx, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x38], ebp
xor ecx, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x1c], ecx
add ebp, 0xc
mov dword [esp + 0x44], 0
cmp dword [esp + 0x24], 0
jbe 0x1005b774
lea ebx, [eax + 0x10]
nop dword [eax]
mov dword [esp + 0x30], eax
lea ebp, [ebp + 0x10]
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x28], eax
movzx eax, byte [ebx - 0xd]
mov byte [ebp - 0x10], al
movzx eax, byte [ebx - 0xe]
mov byte [ebp - 0xf], al
mov eax, dword [ebx - 0x10]
shr eax, 8
mov byte [ebp - 0xe], al
movzx eax, byte [ebx - 0x10]
mov byte [ebp - 0xd], al
movzx eax, byte [ebx + 3]
mov byte [ebp - 0xc], al
movzx eax, byte [ebx + 2]
mov byte [ebp - 0xb], al
mov eax, dword [ebx]
shr eax, 8
mov byte [ebp - 0xa], al
movzx eax, byte [ebx]
mov byte [ebp - 9], al
movzx eax, byte [ebx + 7]
mov byte [ebp - 8], al
movzx eax, byte [ebx + 6]
mov byte [ebp - 7], al
mov eax, dword [ebx + 4]
shr eax, 8
mov byte [ebp - 6], al
movzx eax, byte [ebx + 4]
mov byte [ebp - 5], al
movzx eax, byte [ebx - 1]
mov byte [ebp - 4], al
movzx eax, byte [ebx - 2]
mov byte [ebp - 3], al
mov eax, dword [ebx - 4]
shr eax, 8
mov byte [ebp - 2], al
movzx eax, byte [ebx - 4]
mov byte [ebp - 1], al
mov eax, dword [ebx - 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
je 0x1005b604
push edi
push edi
mov edx, eax
mov ecx, esi
call dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
neg eax
mov edx, dword [esp + 0x18]
sbb edi, edi
mov eax, dword [esp + 0x40]
and edi, 0x55
jmp 0x1005b60d
cmp eax, dword [esi + 4]
ja 0x1005b76d
test edi, edi
jne 0x1005b735
mov dword [esi + 8], eax
mov ecx, esi
mov edx, dword [ebx - 8]
call fcn.1003de20
mov edi, eax
test edi, edi
jne 0x1005b71b
mov eax, dword [ebx - 4]
cmp dword [ebx - 8], eax
jne 0x1005b6ec
push eax
mov eax, dword [ebx + 4]
push dword [esi + 0x20]
add eax, dword [esp + 0x40]
push eax
call fcn.101214b0
add esp, 0xc
cmp dword [esi + 0x14], edi
je 0x1005b667
mov edx, dword [esi]
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x1005b661
mov ecx, eax
mov eax, dword [eax + 8]
call eax
mov dword [esi], 0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov eax, dword [ebx - 4]
add eax, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
test al, 3
je 0x1005b6cd
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
nop
mov byte [edx + eax], 0
inc eax
test al, 3
jne 0x1005b6c0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
add ebx, 0x18
inc eax
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x24]
jge 0x1005b774
mov eax, dword [esp + 0x10]
jmp 0x1005b540
mov edi, 7
cmp dword [esi + 0x14], 0
je 0x1005b70d
mov edx, dword [esi]
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x1005b707
mov ecx, eax
mov eax, dword [eax + 8]
call eax
mov dword [esi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
jmp 0x1005b755
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
test edx, edx
je 0x1005b800
mov eax, dword [ebp + 8]
mov ecx, ebp
call eax
jmp 0x1005b800
mov edi, 0x55
jmp 0x1005b74d
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x14], 0
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x18], 0x1005aed0
mov esi, dword [eax + 0x68]
mov ebp, dword [eax + 8]
test esi, esi
je 0x1005b7db
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x1005b7ca
mov ecx, esi
call eax
test ebp, 0x400
jne 0x1005b7db
mov eax, dword [ebx + 8]
mov edx, esi
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
and dword [ecx + 8], 0xfffffbff
mov dword [ecx + 0x68], eax
jmp 0x1005b74d
mov edi, 6
jmp 0x1005b751
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1005b811
mov edx, eax
mov ecx, ebp
mov eax, dword [ebp + 8]
call eax
test edi, edi
je 0x1005b848
mov ebp, dword [esp + 0x18]
test ebx, ebx
je 0x1005b82c
mov edx, ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
mov eax, dword [ebx + 8]
call eax
jmp 0x1005b830
mov ebx, dword [esp + 0x20]
test ebp, ebp
je 0x1005b848
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1005b83f
mov ecx, ebp
call eax
mov esi, dword [ebx + 8]
mov edx, ebp
mov ecx, ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret