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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x308
mov esi, edx
call 0x4ae1e6
pop edx
mov dword [esp + 0xc], ecx
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
mov dword [esp + 0x20], esi
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x4ae655
mov ecx, ebx
mov dword [esp + 0x1c], ebx
shl ecx, 4
mov dword [esp + 0x34], ecx
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, eax
jmp 0x4ae23a
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp ecx, dword [esp + 0x18]
je 0x4ae3a9
mov esi, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
cmp eax, esi
ja 0x4aed3b
lea edi, [eax + 1]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], esi
cmp edi, esi
mov dword [esp + 0x28], edi
ja 0x4aed3b
test eax, eax
mov dword [esp + 8], eax
je 0x4ae2fb
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edi, dword [eax + 4]
lea ecx, [eax + 0x10]
mov dword [esp + 0x24], ecx
mov ecx, edi
nop
movzx eax, byte [ecx]
lea esi, [eax - 0x21]
cmp esi, 0x5d
ja 0x4ae29c
mov esi, dword [esi*4 + 0x4aed48]
add esi, edx
jmp esi
inc ecx
dec ebx
jne 0x4ae280
jmp 0x4ae2c0
mov esi, edx
mov edx, eax
add dl, 0xd0
cmp dl, 0xa
mov edx, esi
jb 0x4ae296
and al, 0xdf
add al, 0xbf
cmp al, 0x19
jbe 0x4ae296
jmp 0x4ae2fb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x4ae220
add edi, ecx
mov ecx, dword [esp + 8]
not ecx
add ecx, eax
jmp 0x4ae2e8
inc edi
dec ecx
je 0x4ae220
movzx eax, byte [edi]
cmp eax, 9
je 0x4ae2e0
cmp eax, 0x20
je 0x4ae2e0
add al, 0xdf
cmp al, 0x5d
jbe 0x4ae2e0
mov eax, dword [esp + 4]
lea ecx, [esp + 0x248]
mov dword [esp + str.invalid_header_], 0x8ebb80
mov dword [esp + 0x190], 2
mov dword [esp + 0x19c], 0
lea edx, [esp + 0x18c]
mov dword [esp + 0x194], ecx
lea ecx, [esp + 0xcc]
mov dword [esp + 0x198], 1
mov dword [esp + 0x248], eax
mov dword [esp + 0x24c], 0x4ade80
call fcn.0041bf90
mov dword [esp + 0x80], 2
mov dword [esp + 0x84], 2
mov dword [esp + 0xd8], 0
mov byte [esp + 0xe0], 7
lea eax, [esp + 0x80]
push 0xc4
push eax
push dword [esp + 0x14]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [esp + 0x20]
jmp 0x4ae937
lea edi, [eax + 0xc]
jmp 0x4ae3be
add edi, 0x10
add dword [esp + 0x34], 0xfffffff0
je 0x4ae655
mov eax, dword [edi]
cmp eax, dword [edi - 4]
ja 0x4aed3b
mov edx, dword [edi - 8]
lea ecx, [esp + 0x80]
push eax
call fcn.0041da70
add esp, 4
test byte [esp + 0x80], 1
jne 0x4aed3b
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
cmp ecx, 5
je 0x4ae5c0
cmp ecx, 0xf
jne 0x4ae3b0
movzx ecx, byte [eax]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x61
jne 0x4ae3b0
movzx ecx, byte [eax + 1]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x63
jne 0x4ae3b0
movzx ecx, byte [eax + 2]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x63
jne 0x4ae3b0
movzx ecx, byte [eax + 3]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x65
jne 0x4ae3b0
movzx ecx, byte [eax + 4]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x70
jne 0x4ae3b0
movzx ecx, byte [eax + 5]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x74
jne 0x4ae3b0
movzx ecx, byte [eax + 6]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x2d
jne 0x4ae3b0
movzx ecx, byte [eax + 7]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x65
jne 0x4ae3b0
movzx ecx, byte [eax + 8]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x6e
jne 0x4ae3b0
movzx ecx, byte [eax + 9]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x63
jne 0x4ae3b0
movzx ecx, byte [eax + 0xa]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x6f
jne 0x4ae3b0
movzx ecx, byte [eax + 0xb]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x64
jne 0x4ae3b0
movzx ecx, byte [eax + 0xc]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x69
jne 0x4ae3b0
movzx ecx, byte [eax + 0xd]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x6e
jne 0x4ae3b0
movzx eax, byte [eax + 0xe]
mov ecx, eax
add cl, 0xbf
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x67
jne 0x4ae3b0
jmp 0x4ae73c
movzx ecx, byte [eax]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x72
jne 0x4ae3b0
movzx ecx, byte [eax + 1]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x61
jne 0x4ae3b0
movzx ecx, byte [eax + 2]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x6e
jne 0x4ae3b0
movzx ecx, byte [eax + 3]
mov edx, ecx
add dl, 0xbf
cmp dl, 0x1a
setb dl
shl dl, 5
or dl, cl
cmp dl, 0x67
jne 0x4ae3b0
movzx eax, byte [eax + 4]
mov ecx, eax
add cl, 0xbf
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x65
jne 0x4ae3b0
jmp 0x4ae73c
lea eax, [esp + 0x38]
lea edx, [esp + 0x148]
lea ecx, [esp + 0x18c]
mov dword [esp + 0x80], 0x8eb958
mov dword [esp + 0x84], 2
mov dword [esp + 0x90], 0
mov dword [esp + 0x38], 0x8ebdcd
mov dword [esp + 0x148], 0x8ebddc
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x14c], 4
mov dword [esp + 0x88], ecx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], 0x4055f0
mov dword [esp + 0x194], edx
lea ecx, [esp + 0x248]
lea edx, [esp + 0x80]
mov dword [esp + 0x198], 0x4055f0
mov dword [esp + 0x8c], 2
call fcn.0041bf90
mov eax, dword [esp + 0x3c]
cmp ebx, dword [esi + 0x30]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x254], eax
jne 0x4ae716
lea ecx, [esi + 0x30]
call fcn.004aeec0
mov ecx, dword [esi + 0x34]
movq xmm0, qword [esp + 0x248]
movsd xmm1, qword [esp + 0x250]
mov eax, ebx
inc ebx
shl eax, 4
movsd qword [ecx + eax + 8], xmm1
movq qword [ecx + eax], xmm0
mov dword [esi + 0x38], ebx
mov edx, dword [esi + 8]
mov eax, esi
cmp edx, 0x3b9aca00
jne 0x4ae763
mov eax, dword [esi + 0x10]
mov ecx, 0x3b9aca00
mov edx, dword [eax + 0x40]
cmp edx, 0x3b9aca00
je 0x4ae983
add eax, 0x38
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea esi, [esp + 0x80]
mov dword [esp + 0x18], edx
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 4], eax
push esi
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4aed3d
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
movq xmm0, qword [0x9031f8]
movd ebx, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 0x10], ecx
movd edx, xmm0
mov eax, ebx
or eax, edx
jne 0x4ae81f
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
push esi
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4aed3d
movq xmm0, qword [esp + 0x80]
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
movq qword [0x9031f8], xmm0
mov eax, ebx
mov ecx, dword [esp + 0x10]
or eax, edx
je 0x4aed3b
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 8], edx
push edx
push ebx
push ecx
push edi
call fcn.004ec950
mov esi, edx
mov ecx, eax
mul ebx
imul edi, esi, 0x3b9aca00
imul esi, ebx
mov ebx, dword [esp + 0x14]
add esi, edx
mov edx, ecx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x10]
imul edx, dword [esp + 8]
add esi, edx
sub ebx, eax
mov edx, 0x3b9aca00
mov eax, ecx
sbb edi, esi
mul edx
mov esi, edx
mov dword [esp + 0x10], eax
mov eax, ebx
mov edx, 0x3b9aca00
imul ecx, edi, 0x3b9aca00
add esi, dword [esp + 0x1c]
mul edx
add edx, ecx
push dword [esp + 8]
push dword [esp + 0x28]
push edx
push eax
call fcn.004ec950
mov ebx, eax
add ebx, dword [esp + 0x10]
adc edx, esi
push 0
push 0x3b9aca00
push edx
push ebx
call fcn.004ec950
mov edi, dword [esp + 0x28]
mov ecx, eax
mov esi, dword [esp + 0x20]
add ecx, edi
mov ecx, edx
adc ecx, dword [esp + 4]
jae 0x4ae946
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x1b
call fcn.0049d570
test eax, eax
je 0x4aed3b
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x17], 0x6465776f
mov dword [eax + 0x14], 0x6f6c6672
mov dword [eax + 0x10], 0x65766f20
mov dword [eax + 0xc], 0x656e696c
mov dword [eax + 8], 0x64616564
mov dword [eax + 4], 0x20747365
mov dword [eax], 0x75716552
mov dword [ecx], 2
mov dword [ecx + 4], 2
mov dword [ecx + 0x4c], 0x1b
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], 0x1b
mov dword [ecx + 0x58], 0
mov byte [ecx + 0x60], 8
mov ecx, esi
call fcn.004b0930
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
imul ecx, eax, 0x3b9aca00
sub ebx, ecx
mov ecx, dword [esp + 0x18]
add edi, eax
adc edx, dword [esp + 4]
add ecx, ebx
cmp ecx, 0x3b9aca00
jb 0x4ae97b
mov eax, edi
and eax, edx
cmp eax, 0xffffffff
je 0x4ae8bf
add ecx, 0xc4653600
add edi, 1
adc edx, 0
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x38], 0x80000000
mov dword [esp + 0x44], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x58], 0
je 0x4aeae0
mov ecx, dword [esi + 0x10]
lock inc dword [ecx]
jle 0x4aed3b
lock inc dword [eax]
jle 0x4aed3b
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, 0x18
mov edi, dword [eax + 0x54]
mov ebx, dword [eax + 0x58]
lea eax, [edi + ebx*8]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x4aed3b
movsd xmm0, qword [esp + 0x48]
test ebx, ebx
lea ecx, [esp + 0x50]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0x8ebde0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x8ebdfc
movsd xmm1, qword [esi + 0x30]
movsd xmm2, qword [esi + 0x28]
movq xmm0, qword [esi + 0x38]
movsd qword [esp + 0x178], xmm1
movsd xmm1, qword [esi + 0x20]
movsd qword [esp + 0x170], xmm2
movsd xmm2, qword [esi + 0x18]
movq qword [esp + 0x180], xmm0
movsd qword [esp + 0x168], xmm1
movsd xmm1, qword [esi + 0x10]
movsd qword [esp + 0x160], xmm2
movsd xmm2, qword [esi]
movsd qword [esp + 0x158], xmm1
movsd xmm1, qword [esi + 8]
movsd qword [esp + 0x148], xmm2
movsd qword [esp + 0x150], xmm1
je 0x4aeb61
lea eax, [edi + 8]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x148]
lea esi, [esp + 0x80]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 4]
push ecx
push edx
push dword [edi]
push esi
call dword [eax + 0xc]
add esp, 0x10
jmp 0x4aeb84
lea ecx, [esp + 0x80]
lea edx, [esp + 0x38]
push esi
call fcn.004aef50
add esp, 4
mov esi, dword [esp + 0x80]
lea eax, [esp + 0x84]
lea ecx, [esp + 0x18c]
push 0xbc
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx ebx, word [esp + 0x140]
movzx edi, word [esp + 0x142]
cmp esi, 3
jne 0x4aec9c
lea eax, [esp + 0x248]
push 0xbc
lea ecx, [esp + 0x190]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, bx
cmp eax, 0x18f
ja 0x4aec04
jmp 0x4aed05
lea ecx, [esp + 0x80]
mov edx, eax
push esi
mov esi, eax
call fcn.004aef50
add esp, 4
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [esp + 0x80]
lea eax, [esp + 0x84]
lea ecx, [esp + 0x18c]
push 0xbc
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx ebx, word [esp + 0x140]
movzx eax, word [esp + 0x142]
cmp edi, 3
jne 0x4aec38
mov edi, eax
lea eax, [esp + 0x248]
push 0xbc
lea ecx, [esp + 0x190]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
lock dec dword [eax]
je 0x4aecd8
mov eax, dword [esp + 0x30]
lock dec dword [eax]
je 0x4aecee
movzx eax, bx
cmp eax, 0x18f
jbe 0x4aed05
lea eax, [esp + 0x248]
push 0xbc
push eax
mov esi, dword [esp + 0x14]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esi + 0xbc], bx
mov word [esi + 0xbe], di
mov word [esi + 0xc0], bx
jmp 0x4ae93e
mov esi, dword [esp + 0xc]
mov word [esp + 4], ax
lea eax, [esi + 4]
push 0xbc
lea ecx, [esp + 0x190]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, word [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi], edi
mov word [esi + 0xc0], bx
mov word [esi + 0xc2], ax
lock dec dword [ecx]
jne 0x4aec81
mov ecx, dword [esp + 0x2c]
call fcn.004b0370
mov eax, dword [esp + 0x30]
lock dec dword [eax]
jne 0x4ae93e
lea ecx, [esp + 0x30]
call fcn.004b0430
jmp 0x4ae93e
mov word [esp + 4], di
mov edi, dword [esp + 0xc]
lea eax, [edi + 4]
push 0xbc
lea ecx, [esp + 0x190]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, word [esp + 4]
mov dword [edi], esi
mov word [edi + 0xc0], bx
mov word [edi + 0xc2], ax
jmp 0x4ae93e
mov ecx, dword [esp + 0x2c]
call fcn.004b0370
mov eax, dword [esp + 0x30]
lock dec dword [eax]
jne 0x4aebf6
lea ecx, [esp + 0x30]
call fcn.004b0430
movzx eax, bx
cmp eax, 0x18f
ja 0x4aec04
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x248]
lea eax, [esi + 4]
push 0xbc
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esi + 0xc2], di
mov dword [esi], 3
mov word [esi + 0xc0], bx
jmp 0x4ae93e
ud2
call dword [sym.imp.kernel32.dll_GetLastError]
ud2