Function at 0x10013360
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005799f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x370
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
push esi
xor eax, eax
movlpd qword [ebp - 0xa0], xmm0
push edi
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 4]
mov eax, dword [eax]
or eax, edi
jne 0x10013409
mov esi, dword [ebx + 8]
mov dword [esi], 0xc00000ef
mov byte [esi + 0x48], al
lea ecx, [ebp - 0x80]
call fcn.100020d0
lea ecx, [ebp - 0x98]
call fcn.10001e00
mov eax, esi
jmp 0x10013874
xor esi, esi
mov dword [ebp - 0xc4], fcn.100436d3
mov dword [ebp - 0xc0], esi
push 0x40
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.1003d9f0
add esp, 0xc
lea eax, [ebp - 0x280]
push 0x108
push esi
push eax
call fcn.1003d9f0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x178]
add esp, 8
mov ecx, dword [ecx + 4]
push eax
push 0x40
push edi
mov edi, dword [ebx + 0xc]
push dword [edi]
call fcn.10022a20
mov eax, 0x5a4d
cmp word [ebp - 0x178], ax
je 0x10013480
mov esi, dword [ebx + 8]
mov dword [esi], 0xc000012f
mov byte [esi + 0x48], 0
jmp 0x100133ef
push ecx
lea eax, [ebp - 0x280]
push eax
mov eax, dword [ebp - 0x13c]
cdq
add eax, dword [edi]
push 0x108
adc edx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.10022a20
cmp dword [ebp - 0x280], 0x4550
je 0x100134c4
mov esi, dword [ebx + 8]
mov dword [esi], 0xc000007b
mov byte [esi + 0x48], 0
jmp 0x100133ef
mov ecx, dword [ebp - 0x268]
mov edx, 0x10b
mov eax, dword [ebp - 0x1f8]
cmp cx, dx
cmove eax, dword [ebp - 0x208]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10013841
mov edi, dword [ebp - 0x1f4]
cmp cx, dx
cmove edi, dword [ebp - 0x204]
push edi
mov dword [ebp - 0x2c], edi
call fcn.100437e8
mov esi, eax
mov eax, dword [ebx + 0xc]
mov byte [ebp - 4], 1
push esi
push edi
mov edx, dword [eax]
add edx, dword [ebp - 0x20]
mov eax, dword [eax + 4]
adc eax, 0
mov dword [ebp - 0xc0], esi
push eax
mov eax, dword [ebp - 0x18]
push edx
mov ecx, dword [eax + 4]
call fcn.10022a20
test eax, eax
jns 0x10013542
mov edi, dword [ebx + 8]
mov dword [edi], eax
mov byte [edi + 0x48], 0
mov byte [ebp - 4], 5
jmp 0x10013852
mov edx, esi
mov dword [ebp - 0x1c], edx
cmp edi, 0x28
ja 0x100135d2
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0x18]
cmovbe ecx, dword [esi + 0x18]
imul eax, ecx, 0xff
add eax, dword [esi + 0x24]
sub eax, dword [ebp - 0x20]
push eax
mov dword [ebp - 0x2c], eax
call fcn.100437e8
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov eax, esi
mov byte [ebp - 4], 6
mov esi, edi
mov dword [ebp - 0xc0], esi
test eax, eax
je 0x10013592
push eax
call fcn.100436d3
add esp, 4
mov eax, dword [ebx + 0xc]
push ecx
mov byte [ebp - 4], 1
push edi
mov edx, dword [eax]
add edx, dword [ebp - 0x20]
mov eax, dword [eax + 4]
push dword [ebp - 0x2c]
adc eax, 0
push eax
mov eax, dword [ebp - 0x18]
push edx
mov ecx, dword [eax + 4]
call fcn.10022a20
test eax, eax
jns 0x100135d0
mov edi, dword [ebx + 8]
mov dword [edi], eax
mov byte [edi + 0x48], 0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 0
jmp 0x10013854
mov edx, esi
mov eax, dword [ebp - 0x20]
mov edi, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
sub edi, eax
add edi, edx
sub ecx, eax
mov dword [ebp - 0xbc], edi
add ecx, edx
mov edi, dword [edx + 0x1c]
sub edi, eax
mov dword [ebp - 0x30], ecx
add edi, edx
mov dword [ebp - 0x14], edi
xor edi, edi
cmp dword [edx + 0x14], edi
jbe 0x10013841
mov eax, dword [ebx + 0x10]
cmp eax, 0xffff
ja 0x100137e7
movzx eax, di
mov ecx, eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], ecx
add ecx, dword [edx + 0x10]
movzx eax, ax
cmp eax, ecx
jne 0x10013837
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
mov edx, 0
movzx eax, cx
mov ecx, dword [ebp - 0x20]
mov edi, dword [edi + eax*4]
mov eax, dword [ebx + 0xc]
add edi, dword [eax]
mov dword [ebp - 0xa0], edi
adc edx, dword [eax + 4]
add ecx, dword [eax]
mov eax, 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x9c], edx
mov edx, dword [ebx + 0xc]
adc eax, dword [edx + 4]
cmp dword [ebp - 0x1c], eax
jb 0x10013bb5
ja 0x10013673
cmp edi, ecx
jb 0x10013bb5
mov ecx, dword [ebp - 0x2c]
xor eax, eax
add ecx, dword [ebp - 0x20]
adc eax, eax
add ecx, dword [edx]
adc eax, dword [edx + 4]
cmp dword [ebp - 0x1c], eax
ja 0x10013bb5
jb 0x10013695
cmp edi, ecx
ja 0x10013bb5
push 0xff
lea eax, [ebp - 0x380]
push 0
push eax
call fcn.1003d9f0
add esp, 8
lea eax, [ebp - 0x380]
push eax
mov eax, dword [ebp - 0x18]
push 0xff
push dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push edi
call fcn.10022a20
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x380]
mov dword [ebp - 0x4c], 0xf
movups xmmword [ebp - 0x60], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100136e4
sub ecx, edx
lea eax, [ebp - 0x380]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.10002130
push ecx
push 0x10068280
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.10015040
mov edx, eax
mov dword [ebp - 0xe4], 0
cmp dword [ebp - 0x50], edx
lea eax, [ebp - 0x60]
xorps xmm0, xmm0
mov dword [ebp - 0xe0], 0xf
cmovb edx, dword [ebp - 0x50]
lea ecx, [ebp - 0xf4]
cmp dword [ebp - 0x4c], 0x10
push edx
cmovae eax, dword [ebp - 0x60]
push eax
movups xmmword [ebp - 0xf4], xmm0
call fcn.10002130
push str..dll
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
call fcn.100045e0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xdc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xcc], xmm0
xorps xmm0, xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
movups xmmword [eax], xmm0
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xc
call fcn.100020d0
push ecx
push 0x10068284
lea ecx, [ebp - 0x60]
call fcn.10015040
mov edx, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
movups xmmword [ebp - 0x48], xmm0
cmp edx, eax
jb 0x10013c18
jmp 0x10013889
cmp edi, dword [edx + 0x18]
jae 0x10013c02
mov ecx, eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + edi*4]
sub eax, dword [ebp - 0x20]
add eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013820
test dl, dl
je 0x1001381c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013820
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013800
xor eax, eax
jmp 0x10013825
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x30]
movzx ecx, word [edx + edi*2]
test eax, eax
je 0x1001362b
mov edx, dword [ebp - 0x1c]
inc edi
cmp edi, dword [edx + 0x14]
jb 0x10013601
mov edi, dword [ebx + 8]
mov dword [edi], 0xc0000225
mov byte [edi + 0x48], 0
mov byte [ebp - 4], 0x15
test esi, esi
je 0x1001385f
push esi
call fcn.100436d3
add esp, 4
lea ecx, [ebp - 0x80]
call fcn.100020d0
lea ecx, [ebp - 0x98]
call fcn.10001e00
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
sub edx, eax
or edi, 0xffffffff
cmp edx, edi
lea eax, [ebp - 0x60]
mov ecx, edi
cmovb ecx, edx
cmp dword [ebp - 0x4c], 0x10
push ecx
cmovae eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x48]
add eax, dword [ebp - 0x14]
push eax
call fcn.10002130
push ecx
lea edx, [ebp - 0xdc]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xb8]
call fcn.100126d0
add esp, 4
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0xb8]
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0x98]
push dword [ebp - 0xa8]
cmovae eax, dword [ebp - 0xb8]
push eax
mov byte [ebp - 0x66], 1
call fcn.10001fa0
push ecx
push 0x10068288
lea ecx, [ebp - 0x48]
call fcn.10015040
test eax, eax
sete byte [ebp - 0x65]
test eax, eax
lea eax, [ebp - 0x48]
jne 0x10013927
cmp dword [ebp - 0x34], 0x10
cmovae eax, dword [ebp - 0x48]
inc eax
push eax
call fcn.1004494f
add esp, 4
mov word [ebp - 0x68], ax
jmp 0x1001393b
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x80]
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.10002130
push dword [ebx + 0x14]
xor eax, eax
mov ecx, 0x10b
cmp word [ebp - 0x268], cx
mov ecx, dword [ebp - 0x18]
setne al
push eax
push 0
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10012e90
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x28], 0
jne 0x10013a83
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x130]
push eax
call fcn.100044b0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x118]
call fcn.100046d0
mov ax, word [ebp - 0x68]
mov word [ebp - 0x100], ax
movzx eax, byte [ebp - 0x66]
mov byte [ebp - 0xfe], al
movzx eax, byte [ebp - 0x65]
mov byte [ebp - 0xfd], al
mov eax, dword [ebx + 8]
mov dword [eax], 0x107
lea ecx, [eax + 8]
lea eax, [ebp - 0x138]
push eax
call fcn.10011b70
mov byte [ecx + 0x40], 1
lea ecx, [ebp - 0x118]
call fcn.100020d0
lea ecx, [ebp - 0x130]
call fcn.10001e00
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x10013a31
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x10013a31
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], edi
dec edi
jne 0x10013a31
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xb8]
call fcn.10001e00
lea ecx, [ebp - 0x48]
call fcn.100020d0
lea ecx, [ebp - 0xdc]
call fcn.100020d0
lea ecx, [ebp - 0x60]
call fcn.100020d0
mov byte [ebp - 4], 0x11
test esi, esi
je 0x10013a68
push esi
call fcn.100436d3
add esp, 4
lea ecx, [ebp - 0x80]
call fcn.100020d0
lea ecx, [ebp - 0x98]
call fcn.10001e00
mov eax, dword [ebx + 8]
jmp 0x10013874
cmp byte [ebp - 0x65], 0
je 0x10013b0c
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
mov ecx, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0xb8]
push eax
movzx eax, word [ebp - 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 8]
call fcn.10013330
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x10013add
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x10013add
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], edi
dec edi
jne 0x10013add
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xb8]
call fcn.10001e00
lea ecx, [ebp - 0x48]
call fcn.100020d0
lea ecx, [ebp - 0xdc]
call fcn.100020d0
lea ecx, [ebp - 0x60]
call fcn.100020d0
mov byte [ebp - 4], 0x12
jmp 0x10013b8d
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0xb8]
lea eax, [ebp - 0x48]
cmovae ecx, dword [ebp - 0xb8]
cmp dword [ebp - 0x34], 0x10
push ecx
cmovae eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 8]
call fcn.10013330
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x10013b63
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x10013b63
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], edi
dec edi
jne 0x10013b63
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xb8]
call fcn.10001e00
lea ecx, [ebp - 0x48]
call fcn.100020d0
lea ecx, [ebp - 0xdc]
call fcn.100020d0
lea ecx, [ebp - 0x60]
call fcn.100020d0
mov byte [ebp - 4], 0x13
test esi, esi
je 0x10013b9a
push esi
call fcn.100436d3
add esp, 4
lea ecx, [ebp - 0x80]
call fcn.100020d0
lea ecx, [ebp - 0x98]
call fcn.10001e00
mov eax, dword [ebx + 8]
jmp 0x10013874
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x138]
call fcn.10011b70
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x138]
push eax
lea ecx, [edi + 8]
mov dword [edi], 0
call fcn.10011b70
mov byte [ecx + 0x40], 1
lea ecx, [ebp - 0x118]
call fcn.100020d0
lea ecx, [ebp - 0x130]
call fcn.10001e00
mov byte [ebp - 4], 0x14
jmp 0x10013852
mov edi, dword [ebx + 8]
mov dword [edi], 0xc0000225
mov byte [edi + 0x48], 0
mov byte [ebp - 4], 8
jmp 0x10013852
call fcn.10006470
int3