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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x58], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45f7c5
cmp eax, 3
jne 0x45fc57
mov eax, dword [ebp + 4]
mov ebx, dword [ebp + 8]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
shr eax, 5
and eax, 0xffff
shl eax, 2
imul ebx, eax
mov dword [esp + 0x50], eax
lea ecx, [ebx + 0x8c]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x5c], eax
je 0x45fc57
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov ecx, 0xa
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi], 0x28
mov edx, dword [ebp + 4]
mov dword [esi + 4], edx
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
xor eax, eax
xor edi, edi
mov word [esi + 0xc], 1
mov word [esi + 0xe], 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov di, word [ebp]
push ebp
mov dword [esp + 0x58], esi
add edi, ebp
call fcn.0045f710
and eax, 0xffff
add esp, 4
add eax, edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x45f8af
cmp word [ebp + 0xe], 0x10
jne 0x45f894
mov ebx, 0x7c00
mov edi, 0x1f
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0x3e0
mov dword [esp + 0x14], edi
jmp 0x45f8c7
mov ebx, 0xff0000
mov dword [esp + 0x10], 0xff00
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xff
jmp 0x45f8c3
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 4]
cmp word [ebp + 0xe], 0x10
mov dword [esp + 0x1c], eax
jne 0x45f8e0
mov ecx, eax
and ecx, 1
add eax, ecx
mov dword [esp + 0x1c], eax
push ebx
call fcn.0045f750
add esp, 4
cmp al, 8
jbe 0x45f90d
push ebx
call fcn.0045f780
or edx, 0xffffffff
mov ecx, eax
shl edx, cl
add ebx, edx
push ebx
call fcn.0045f750
add esp, 8
cmp al, 8
ja 0x45f8ed
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
push eax
call fcn.0045f750
add esp, 4
cmp al, 8
jbe 0x45f946
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0045f780
or edx, 0xffffffff
mov ecx, eax
mov eax, dword [esp + 0x14]
shl edx, cl
add eax, edx
push eax
mov dword [esp + 0x18], eax
call fcn.0045f750
add esp, 8
cmp al, 8
ja 0x45f91e
push edi
call fcn.0045f750
add esp, 4
cmp al, 8
jbe 0x45f973
push edi
call fcn.0045f780
or edx, 0xffffffff
mov ecx, eax
shl edx, cl
add edi, edx
push edi
call fcn.0045f750
add esp, 8
cmp al, 8
ja 0x45f953
mov dword [esp + 0x14], edi
push ebx
call fcn.0045f780
mov byte [esp + 0x50], al
mov eax, dword [esp + 0x14]
push eax
call fcn.0045f780
push edi
mov byte [esp + 0x50], al
call fcn.0045f780
push ebx
mov byte [esp + 0x4c], al
call fcn.0045f750
mov edx, dword [esp + 0x20]
mov cl, 8
sub cl, al
push edx
mov byte [esp + 0x64], cl
call fcn.0045f750
mov cl, 8
push edi
sub cl, al
mov byte [esp + 0x60], cl
call fcn.0045f750
mov dl, 8
add esp, 0x18
sub dl, al
cmp word [ebp + 0xe], 0x10
mov byte [esp + 0x40], dl
jne 0x45fb01
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x30], eax
jle 0x45fc25
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
lea edx, [ecx + ecx]
mov dword [esp + 0x5c], edx
mov edi, dword [esi]
mov ecx, dword [ebp + 4]
add eax, edi
mov dword [esp + 0x2c], 0
add eax, esi
test ecx, ecx
jle 0x45facc
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
and ecx, 0xff
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff
and edi, 0xff
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x4c]
and ecx, 0xff
and edx, 0xff
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x50]
and ecx, 0xff
mov esi, ebx
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cx, word [esi]
add esi, 2
mov ebx, ecx
mov ecx, dword [esp + 0x14]
and ebx, ecx
mov ecx, edi
shr ebx, cl
mov ecx, edx
shl bl, cl
xor ecx, ecx
inc eax
mov byte [eax - 1], bl
mov cx, word [esi - 2]
mov ebx, ecx
mov ecx, dword [esp + 0x10]
and ebx, ecx
mov ecx, dword [esp + 0x1c]
shr ebx, cl
mov ecx, dword [esp + 0x20]
shl bl, cl
xor ecx, ecx
inc eax
mov byte [eax - 1], bl
mov cx, word [esi - 2]
mov ebx, ecx
mov ecx, dword [esp + 0x18]
and ebx, ecx
mov ecx, dword [esp + 0x24]
shr ebx, cl
mov ecx, dword [esp + 0x28]
shl bl, cl
mov ecx, dword [esp + 0x2c]
inc eax
inc ecx
mov dword [esp + 0x2c], ecx
mov byte [eax - 1], bl
mov ebx, dword [ebp + 4]
cmp ecx, ebx
jl 0x45fa60
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x58]
mov edx, dword [ebp + 8]
add ebx, eax
mov eax, dword [esp + 0x38]
inc ecx
add eax, edi
cmp ecx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
jl 0x45f9f9
jmp 0x45fc25
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], 0
test eax, eax
jle 0x45fc25
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x34], ebx
lea ecx, [edx*4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x5c], ecx
mov edi, dword [esi]
mov ecx, dword [ebp + 4]
add eax, edi
mov dword [esp + 0x38], 0
add eax, esi
test ecx, ecx
jle 0x45fbf5
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
and ecx, 0xff
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
and ecx, 0xff
and edi, 0xff
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x4c]
and ecx, 0xff
and edx, 0xff
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x50]
and ecx, 0xff
mov esi, ebx
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi]
and ebx, ecx
mov ecx, edi
shr ebx, cl
mov ecx, edx
add esi, 4
shl bl, cl
inc eax
mov byte [eax - 1], bl
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi - 4]
and ebx, ecx
mov ecx, dword [esp + 0x1c]
shr ebx, cl
mov ecx, dword [esp + 0x20]
shl bl, cl
inc eax
mov byte [eax - 1], bl
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi - 4]
and ebx, ecx
mov ecx, dword [esp + 0x24]
shr ebx, cl
mov ecx, dword [esp + 0x28]
shl bl, cl
mov ecx, dword [esp + 0x38]
inc eax
inc ecx
mov dword [esp + 0x38], ecx
mov byte [eax - 1], bl
mov ebx, dword [ebp + 4]
cmp ecx, ebx
jl 0x45fb98
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x58]
mov edx, dword [ebp + 8]
add ebx, eax
mov eax, dword [esp + 0x2c]
inc ecx
add eax, edi
cmp ecx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], eax
jl 0x45fb31
mov edi, dword [esp + 0x60]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x45fc3f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
pop edi
mov dword [eax], edx
mov edx, dword [esp + 0x6c]
mov dword [ecx], esi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret