Function at 0x4a7290
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 0x4a72a6
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 0x4a7715
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 0x4a72fa
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 0x4a7469
mov esi, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
cmp eax, esi
ja 0x4a7dfb
lea edi, [eax + 1]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], esi
cmp edi, esi
mov dword [esp + 0x28], edi
ja 0x4a7dfb
test eax, eax
mov dword [esp + 8], eax
je 0x4a73bb
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 0x4a735c
mov esi, dword [esi*4 + 0x4a7e08]
add esi, edx
jmp esi
inc ecx
dec ebx
jne 0x4a7340
jmp 0x4a7380
mov esi, edx
mov edx, eax
add dl, 0xd0
cmp dl, 0xa
mov edx, esi
jb 0x4a7356
and al, 0xdf
add al, 0xbf
cmp al, 0x19
jbe 0x4a7356
jmp 0x4a73bb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x4a72e0
add edi, ecx
mov ecx, dword [esp + 8]
not ecx
add ecx, eax
jmp 0x4a73a8
inc edi
dec ecx
je 0x4a72e0
movzx eax, byte [edi]
cmp eax, 9
je 0x4a73a0
cmp eax, 0x20
je 0x4a73a0
add al, 0xdf
cmp al, 0x5d
jbe 0x4a73a0
mov eax, dword [esp + 4]
lea ecx, [esp + 0x248]
mov dword [esp + 0x18c], 0xfbd9c0
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], 0x4a6f40
call fcn.00415500
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 0x4a79f7
lea edi, [eax + 0xc]
jmp 0x4a747e
add edi, 0x10
add dword [esp + 0x34], 0xfffffff0
je 0x4a7715
mov eax, dword [edi]
cmp eax, dword [edi - 4]
ja 0x4a7dfb
mov edx, dword [edi - 8]
lea ecx, [esp + 0x80]
push eax
call fcn.00416fe0
add esp, 4
test byte [esp + 0x80], 1
jne 0x4a7dfb
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
cmp ecx, 5
je 0x4a7680
cmp ecx, 0xf
jne 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
jmp 0x4a77fc
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
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 0x4a7470
jmp 0x4a77fc
lea eax, [esp + 0x38]
lea edx, [esp + 0x148]
lea ecx, [esp + 0x18c]
mov dword [esp + 0x80], 0xfbd798
mov dword [esp + 0x84], 2
mov dword [esp + 0x90], 0
mov dword [esp + 0x38], 0xfbdc0d
mov dword [esp + 0x148], 0xfbdc1c
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x14c], 4
mov dword [esp + 0x88], ecx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], 0x49bdf0
mov dword [esp + 0x194], edx
lea ecx, [esp + 0x248]
lea edx, [esp + 0x80]
mov dword [esp + 0x198], 0x49bdf0
mov dword [esp + 0x8c], 2
call fcn.00415500
mov eax, dword [esp + 0x3c]
cmp ebx, dword [esi + 0x30]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x254], eax
jne 0x4a77d6
lea ecx, [esi + 0x30]
call fcn.004a7f80
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 0x4a7823
mov eax, dword [esi + 0x10]
mov ecx, 0x3b9aca00
mov edx, dword [eax + 0x40]
cmp edx, 0x3b9aca00
je 0x4a7a43
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 0x4a7dfd
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
movq xmm0, qword [0xfd51f8]
movd ebx, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 0x10], ecx
movd edx, xmm0
mov eax, ebx
or eax, edx
jne 0x4a78df
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4a7dfd
movq xmm0, qword [esp + 0x80]
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
movq qword [0xfd51f8], xmm0
mov eax, ebx
mov ecx, dword [esp + 0x10]
or eax, edx
je 0x4a7dfb
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.004e5ff0
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.004e5ff0
mov ebx, eax
add ebx, dword [esp + 0x10]
adc edx, esi
push 0
push 0x3b9aca00
push edx
push ebx
call fcn.004e5ff0
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 0x4a7a06
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, 0x1b
call fcn.00494530
test eax, eax
je 0x4a7dfb
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.004a99f0
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 0x4a7a3b
mov eax, edi
and eax, edx
cmp eax, 0xffffffff
je 0x4a797f
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 0x4a7ba0
mov ecx, dword [esi + 0x10]
lock inc dword [ecx]
jle 0x4a7dfb
lock inc dword [eax]
jle 0x4a7dfb
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 [0xfd520d]
call fcn.00494530
test eax, eax
je 0x4a7dfb
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], 0xfbdc20
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0xfbdc3c
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 0x4a7c21
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 0x4a7c44
lea ecx, [esp + 0x80]
lea edx, [esp + 0x38]
push esi
call fcn.004a8010
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 0x4a7d5c
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 0x4a7cc4
jmp 0x4a7dc5
lea ecx, [esp + 0x80]
mov edx, eax
push esi
mov esi, eax
call fcn.004a8010
add esp, 4
push esi
push 0
push dword [0xfd5200]
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 0x4a7cf8
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 0x4a7d98
mov eax, dword [esp + 0x30]
lock dec dword [eax]
je 0x4a7dae
movzx eax, bx
cmp eax, 0x18f
jbe 0x4a7dc5
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 0x4a79fe
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 0x4a7d41
mov ecx, dword [esp + 0x2c]
call fcn.004a9430
mov eax, dword [esp + 0x30]
lock dec dword [eax]
jne 0x4a79fe
lea ecx, [esp + 0x30]
call fcn.004a94f0
jmp 0x4a79fe
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 0x4a79fe
mov ecx, dword [esp + 0x2c]
call fcn.004a9430
mov eax, dword [esp + 0x30]
lock dec dword [eax]
jne 0x4a7cb6
lea ecx, [esp + 0x30]
call fcn.004a94f0
movzx eax, bx
cmp eax, 0x18f
ja 0x4a7cc4
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 0x4a79fe
ud2
call dword [sym.imp.KERNEL32.dll_GetLastError]
ud2