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

Disassembly:
sub esp, 0x90
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebp
push esi
mov esi, dword [esp + 0xa4]
push esi
push 0x42
mov dword [esp + 0x14], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x411831
mov dword [esp + 0xc], 1
mov esi, dword [esp + 0xc]
jmp 0x411a7c
mov eax, dword [0x460004]
push edi
mov edi, dword [esp + 0xa4]
push 0
push edi
push eax
call fcn.0040a3a0
add esp, 0xc
cmp eax, edi
jne 0x411a51
mov ecx, dword [0x460004]
push esi
push ebp
push ecx
call fcn.0040a3c0
add esp, 0xc
cmp eax, esi
jne 0x411a51
mov edi, dword [esi + ebp - 4]
cmp edi, 1
mov dword [esp + 0x18], edi
jge 0x411885
mov dword [esp + 0x10], 0
jmp 0x411a59
mov edx, edi
imul edx, edx, 0x110
push edx
push 0x42
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x464bf0], eax
je 0x411a51
xor esi, esi
test edi, edi
mov dword [0x464bf4], edi
jle 0x411914
xor ebx, ebx
mov dword [esp + 0x14], edi
mov cl, byte [esi + ebp]
add eax, ebx
add esi, 1
mov byte [eax], cl
mov dl, byte [esi + ebp]
add esi, 1
mov byte [eax + 1], dl
movzx edi, word [esi + ebp]
add esi, 2
cmp dl, 2
jne 0x4118dc
mov dword [eax + 8], edi
jmp 0x4118fe
cmp edi, 0xff
mov ecx, edi
jb 0x4118eb
mov ecx, 0xff
push ecx
lea ecx, [esi + ebp]
push ecx
add eax, 0xc
push eax
call fcn.0043bed0
add esp, 0xc
add esi, edi
mov eax, dword [0x464bf0]
add ebx, 0x110
sub dword [esp + 0x14], 1
jne 0x4118b8
mov edi, dword [esp + 0x18]
mov ecx, eax
or eax, 0xffffffff
xor esi, esi
test edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
jle 0x411a59
add ecx, 0x110
jmp 0x4119d4
mov edi, dword [esp + 0x18]
movzx edx, byte [ecx - 0x110]
cmp edx, 0x1f
jg 0x411a51
test edx, edx
jle 0x4119ea
mov eax, dword [esp + edx*4 + 0x1c]
jmp 0x4119ed
or eax, 0xffffffff
add edi, 0xffffffff
cmp esi, edi
mov dword [ecx - 0x10c], eax
je 0x411a01
movzx eax, byte [ecx]
cmp eax, edx
je 0x411a40
mov eax, dword [esp + edx*4 + 0x20]
cmp eax, 0xffffffff
lea ebx, [esp + edx*4 + 0x20]
mov dword [esp + 0x1c], ebx
jle 0x411a25
mov ebx, dword [esp + 0x14]
imul eax, eax, 0x110
mov byte [eax + ebx + 3], 0
mov ebx, dword [esp + 0x1c]
cmp esi, edi
jge 0x411a35
movzx eax, byte [ecx]
cmp eax, edx
jge 0x411a35
or eax, 0xffffffff
jmp 0x411a37
mov eax, esi
mov dword [ebx], eax
mov byte [ecx - 0x10d], 1
add esi, 1
add ecx, 0x110
cmp esi, dword [esp + 0x18]
jl 0x4119d0
jmp 0x411a59
mov dword [esp + 0x10], 1
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x10]
test esi, esi
pop edi
je 0x411a89
push 0x9f
call fcn.0040ab70
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret