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

Disassembly:
sub esp, 0x14
mov ecx, dword [0x4c1ad8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], 1
shl ecx, 4
mov eax, dword [edi]
push ecx
push 0x40
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [0x4c1ad8]
mov ebx, eax
shl edx, 4
push edx
push 0x40
call esi
mov ebp, eax
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
jne 0x45a58d
push 0x4c1fa4
call fcn.00491850
add esp, 4
mov dword [esp + 0x10], esi
jmp 0x45a7a2
mov eax, dword [esp + 0x5c]
cmp dword [eax], esi
jne 0x45a5ab
push 0x4c1f8c
call fcn.00491850
add esp, 4
mov dword [esp + 0x10], esi
jmp 0x45a7a2
mov eax, dword [0x4c1ad8]
xor ecx, ecx
cmp eax, esi
jle 0x45a5d5
mov edx, ebx
mov eax, ebp
sub edx, ebp
mov edi, dword [0x4c1ad4]
inc ecx
mov dword [edx + eax], edi
mov dword [eax], esi
mov edi, dword [0x4c1ad8]
add eax, 0x10
cmp ecx, edi
jl 0x45a5bc
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x64]
push ebp
push ebx
push 0x4c1adc
push edi
push esi
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call fcn.00413310
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x78]
push ebp
push ebx
push 0x4c1adc
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edi
push esi
push edx
push eax
call fcn.00413310
mov esi, dword [esp + 0xcc]
mov edi, dword [esp + 0xc8]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
add esp, 0x58
mov eax, dword [esp + 0x7c]
push ebp
push ebx
push 0x4c1adc
push esi
push edi
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
push eax
call fcn.00413310
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x60]
push ebp
push ebx
push 0x4c1adc
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push ecx
push esi
push edi
push edx
push eax
call fcn.00413310
mov ax, word [esp + 0x148]
add esp, 0x58
cmp ax, 0xd
je 0x45a6d3
cmp ax, 0xb
jne 0x45a6f4
mov ax, word [esp + 0xf2]
test ax, ax
je 0x45a7a2
cmp ax, 0x100
jne 0x45a6f4
mov word [esp + 0xf0], 0
mov edi, dword [0x4c1ae0]
mov eax, dword [0x4c1ae8]
cmp edi, eax
jge 0x45a7a2
mov eax, dword [esp + 0xf2]
mov ecx, dword [esp + 0xf0]
mov esi, edi
mov edx, ebp
shl esi, 4
and eax, 0xffff
and ecx, 0xffff
add esi, ebx
sub edx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jmp 0x45a745
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xf8]
push ecx
mov ecx, dword [esp + 0x70]
push 0x4c1adc
add edx, esi
push eax
push edx
mov edx, dword [esp + 0x34]
push esi
push ecx
push edi
push edx
call fcn.0045a1a0
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
add esp, 0x30
inc edi
mov ecx, dword [eax + 4]
add esi, 0x10
lea eax, [edx + ecx*4]
mov dword [esp + 0x14], eax
mov eax, dword [0x4c1ae8]
cmp edi, eax
jl 0x45a739
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x45a7af
push ebx
call esi
test ebp, ebp
je 0x45a7b6
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret