Function at 0x4a37f0
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 0x4a3806
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 0x4a3c75
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 0x4a385a
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 0x4a39c9
mov esi, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
cmp eax, esi
ja 0x4a435b
lea edi, [eax + 1]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], esi
cmp edi, esi
mov dword [esp + 0x28], edi
ja 0x4a435b
test eax, eax
mov dword [esp + 8], eax
je 0x4a391b
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 0x4a38bc
mov esi, dword [esi*4 + 0x4a4368]
add esi, edx
jmp esi
inc ecx
dec ebx
jne 0x4a38a0
jmp 0x4a38e0
mov esi, edx
mov edx, eax
add dl, 0xd0
cmp dl, 0xa
mov edx, esi
jb 0x4a38b6
and al, 0xdf
add al, 0xbf
cmp al, 0x19
jbe 0x4a38b6
jmp 0x4a391b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x4a3840
add edi, ecx
mov ecx, dword [esp + 8]
not ecx
add ecx, eax
jmp 0x4a3908
inc edi
dec ecx
je 0x4a3840
movzx eax, byte [edi]
cmp eax, 9
je 0x4a3900
cmp eax, 0x20
je 0x4a3900
add al, 0xdf
cmp al, 0x5d
jbe 0x4a3900
mov eax, dword [esp + 4]
lea ecx, [esp + 0x248]
mov dword [esp + str.invalid_header_], 0x75ec20
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], 0x4a34a0
call fcn.00412300
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 0x4a3f57
lea edi, [eax + 0xc]
jmp 0x4a39de
add edi, 0x10
add dword [esp + 0x34], 0xfffffff0
je 0x4a3c75
mov eax, dword [edi]
cmp eax, dword [edi - 4]
ja 0x4a435b
mov edx, dword [edi - 8]
lea ecx, [esp + 0x80]
push eax
call fcn.00413de0
add esp, 4
test byte [esp + 0x80], 1
jne 0x4a435b
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
cmp ecx, 5
je 0x4a3be0
cmp ecx, 0xf
jne 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
jmp 0x4a3d5c
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
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 0x4a39d0
jmp 0x4a3d5c
lea eax, [esp + 0x38]
lea edx, [esp + 0x148]
lea ecx, [esp + 0x18c]
mov dword [esp + 0x80], 0x75e9f8
mov dword [esp + 0x84], 2
mov dword [esp + 0x90], 0
mov dword [esp + 0x38], 0x75ee6d
mov dword [esp + 0x148], 0x75ee7c
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x14c], 4
mov dword [esp + 0x88], ecx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], 0x498340
mov dword [esp + 0x194], edx
lea ecx, [esp + 0x248]
lea edx, [esp + 0x80]
mov dword [esp + 0x198], 0x498340
mov dword [esp + 0x8c], 2
call fcn.00412300
mov eax, dword [esp + 0x3c]
cmp ebx, dword [esi + 0x30]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x254], eax
jne 0x4a3d36
lea ecx, [esi + 0x30]
call fcn.004a44e0
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 0x4a3d83
mov eax, dword [esi + 0x10]
mov ecx, 0x3b9aca00
mov edx, dword [eax + 0x40]
cmp edx, 0x3b9aca00
je 0x4a3fa3
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 0x4a435d
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
movq xmm0, qword [0x776178]
movd ebx, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 0x10], ecx
movd edx, xmm0
mov eax, ebx
or eax, edx
jne 0x4a3e3f
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4a435d
movq xmm0, qword [esp + 0x80]
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
movq qword [0x776178], xmm0
mov eax, ebx
mov ecx, dword [esp + 0x10]
or eax, edx
je 0x4a435b
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.004e21b0
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.004e21b0
mov ebx, eax
add ebx, dword [esp + 0x10]
adc edx, esi
push 0
push 0x3b9aca00
push edx
push ebx
call fcn.004e21b0
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 0x4a3f66
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, 0x1b
call fcn.00490be0
test eax, eax
je 0x4a435b
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.004a5f50
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 0x4a3f9b
mov eax, edi
and eax, edx
cmp eax, 0xffffffff
je 0x4a3edf
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 0x4a4100
mov ecx, dword [esi + 0x10]
lock inc dword [ecx]
jle 0x4a435b
lock inc dword [eax]
jle 0x4a435b
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 [0x77618d]
call fcn.00490be0
test eax, eax
je 0x4a435b
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], 0x75ee80
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x75ee9c
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 0x4a4181
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 0x4a41a4
lea ecx, [esp + 0x80]
lea edx, [esp + 0x38]
push esi
call fcn.004a4570
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 0x4a42bc
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 0x4a4224
jmp 0x4a4325
lea ecx, [esp + 0x80]
mov edx, eax
push esi
mov esi, eax
call fcn.004a4570
add esp, 4
push esi
push 0
push dword [0x776180]
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 0x4a4258
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 0x4a42f8
mov eax, dword [esp + 0x30]
lock dec dword [eax]
je 0x4a430e
movzx eax, bx
cmp eax, 0x18f
jbe 0x4a4325
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 0x4a3f5e
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 0x4a42a1
mov ecx, dword [esp + 0x2c]
call fcn.004a5990
mov eax, dword [esp + 0x30]
lock dec dword [eax]
jne 0x4a3f5e
lea ecx, [esp + 0x30]
call fcn.004a5a50
jmp 0x4a3f5e
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 0x4a3f5e
mov ecx, dword [esp + 0x2c]
call fcn.004a5990
mov eax, dword [esp + 0x30]
lock dec dword [eax]
jne 0x4a4216
lea ecx, [esp + 0x30]
call fcn.004a5a50
movzx eax, bx
cmp eax, 0x18f
ja 0x4a4224
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 0x4a3f5e
ud2
call dword [sym.imp.KERNEL32.dll_GetLastError]
ud2