Function at 0x4aee40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
push ebp
push 0xc
lea eax, [esp + 0x28]
xor esi, esi
push 1
push eax
mov dword [esp + 0x20], esi
call dword [0x4d44d4]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x8c]
add esp, 0x10
inc ecx
and ecx, 0xfffffffe
sub ecx, 4
cmp eax, 0xffffffff
mov dword [esp + 0x24], ecx
je 0x4aee93
mov ebx, eax
sar ebx, 7
and ebx, 1
and eax, 0x7f
mov dword [esp + 0x80], eax
jmp 0x4aee9c
xor ebx, ebx
mov dword [esp + 0x80], esi
push 0x192
call dword [0x4d44c4]
mov edx, ebx
mov edi, eax
mov eax, dword [esp + 0x84]
mov ecx, 0x64
shl edx, 7
add edx, eax
xor eax, eax
add esp, 4
lea edx, [edx*4 + 0x628b80]
mov dword [esp + 0x14], edx
mov dword [edx], edi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [edx]
mov dword [eax], 0x54534e49
mov ecx, dword [edx]
mov dword [ecx + 4], 0x142
mov eax, dword [edx]
mov byte [eax + 8], bl
mov ecx, dword [edx]
mov al, byte [esp + 0x80]
mov byte [ecx + 9], al
mov ebx, dword [edx]
mov eax, dword [esp + 0x24]
add ebx, 0x14a
cmp eax, esi
je 0x4af0b9
push ebp
push 8
lea ecx, [esp + 0x20]
push 1
push ecx
call dword [0x4d44d4]
add esp, 0x10
test eax, eax
je 0x4af0ad
mov ecx, 4
mov edi, str.fmt
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4aef59
push ebp
push 0x10
lea eax, [esp + 0x34]
push 1
push eax
call dword [0x4d44d4]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
push 1
push ecx
jmp 0x4af076
mov ecx, 4
mov edi, str.data
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4af00b
cmp word [esp + 0x2c], 1
jne 0x4af080
mov word [ebx + 0x28], 0x4000
mov word [ebx + 0x2a], 0x7fff
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
push ebp
div ecx
mov edx, dword [esp + 0x32]
push ebx
and edx, 0xffff
imul eax, edx
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x3c], eax
mov cl, byte [esp + 0x36]
and ecx, 2
shl ecx, 5
or word [ebx + 0x2c], cx
mov al, byte [esp + 0x42]
mov cx, word [ebx + 0x2c]
shr al, 2
and eax, 2
or eax, ecx
mov word [ebx + 0x2c], ax
mov dl, byte [esp + 0x42]
shr dl, 2
and edx, 4
or edx, eax
mov word [ebx + 0x2c], dx
call fcn.004b54c0
add esp, 8
test eax, eax
jne 0x4af080
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
inc word [eax + 0x148]
jmp 0x4af080
mov ecx, 4
mov edi, str.smpl
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4af06f
push ebp
push 0x3c
lea eax, [esp + 0x44]
push 1
push eax
call dword [0x4d44d4]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xffffffc4
push 1
push ecx
push ebp
call dword [0x4d44d0]
mov eax, dword [esp + 0x64]
add esp, 0xc
test eax, eax
je 0x4af080
mov edx, dword [esp + 0x68]
mov dword [ebx + 0x34], edx
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x38], eax
mov cl, byte [esp + 0x64]
and ecx, 1
shl ecx, 4
or ecx, 8
or word [ebx + 0x2c], cx
jmp 0x4af080
mov edx, dword [esp + 0x1c]
push 1
push edx
push ebp
call dword [0x4d44d0]
add esp, 0xc
mov eax, dword [esp + 0x1c]
push 1
and eax, 1
push eax
push ebp
call dword [0x4d44d0]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
add esp, 0xc
inc ecx
and ecx, 0xfffffffe
mov edx, 0xfffffff8
sub edx, ecx
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4aef08
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret