Function at 0x46a49c
Capabilities:
Link many functions at runtime

Disassembly:
test dword [0x4b63ec], 0xffffff80
jne 0x46a4c4
test dword [0x4b63ec], 0xffffffff
jne 0x46a778
call fcn.00490ee4
jmp fcn.0046a49c
push edi
push ebp
sub esp, 0x118
mov edi, ecx
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 0xa8], eax
test eax, eax
je 0x46a71a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [edi + 0x10], eax
test eax, eax
je 0x46a75f
mov dword [eax], 0x46a494
mov eax, dword [edi + 0x10]
lea ebp, [esp + 0x10c]
mov dword [eax + 8], 0x46a48c
mov edx, dword [edi + 0x10]
lea eax, [esp]
mov dword [edx + 4], 0x46a478
xor edx, edx
push ebp
push eax
push 0x104
push edx
push 0x4c7aa4
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x46a691
cmp dword [edi + 0x14], 0
je 0x46a6a5
mov dword [edi + 0x1c], 1
mov eax, dword [esp + 0x12c]
mov dword [edi + 0x20], eax
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 0xac], eax
test eax, eax
je 0x46a577
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
jmp 0x46a579
xor ecx, ecx
mov edx, dword [edi + 0x1c]
lea ebp, [edx + edx]
add ebp, ebp
add ebp, ecx
test edx, edx
jle 0x46a60b
mov dword [esp + 0x110], ecx
xor eax, eax
mov dword [esp + 0x114], edi
mov dword [esp + 0x104], ebx
mov ebx, eax
mov dword [esp + 0x108], esi
mov edi, dword [esp + 0x128]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x46a5c4
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x46a5bc
mov ecx, eax
mov esi, ebp
mov edi, dword [esp + 0x128]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x46a5cf
mov edx, dword [esp + 0x110]
mov dword [edx + ebx*4], ebp
lea ebp, [ecx + ebp + 1]
inc ebx
mov ecx, dword [esp + 0x114]
cmp ebx, dword [ecx + 0x1c]
jl 0x46a5ab
mov ecx, edx
mov edi, dword [esp + 0x114]
mov ebx, dword [esp + 0x104]
mov esi, dword [esp + 0x108]
mov dword [edi + 0x24], ecx
movzx eax, byte [esp + 0x130]
test eax, eax
je 0x46a623
mov byte [edi + 0xa4], 0x31
jmp 0x46a62a
mov byte [edi + 0xa4], 0x30
mov dword [edi + 0x34], 0
mov eax, dword [esp + 0x124]
lea edx, [edi + 0x28]
mov dword [edi + 0x30], 0x4b82ac
mov dword [edi + 0x2c], eax
push edx
call dword [edi + 0xc]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 4]
mov ebp, eax
push dword [edi + 0xac]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi + 0xac]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, edi
call fcn.0046aa28
mov edx, 1
cmp ebp, 0
mov eax, 0
cmove eax, edx
add esp, 0x118
pop ebp
pop edi
ret 0x10
mov ecx, edi
call fcn.0046aa28
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push 0x4c7aa4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x14], eax
test eax, eax
je 0x46a744
push 0x4c7ab0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 8], eax
push 0x4c7ab8
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 4], eax
push 0x4c7ac4
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0xc], eax
cmp dword [edi + 4], 0
je 0x46a727
test eax, eax
je 0x46a727
mov eax, dword [edi + 8]
test eax, eax
je 0x46a727
push dword [edi + 0x10]
call eax
test eax, eax
jne 0x46a544
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.0046aa28
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.0046aa28
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.0046aa28
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push dword [edi + 0xa8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push edi
push ebp
sub esp, 0x118
mov edi, ecx
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 0xa8], eax
test eax, eax
je 0x46a9c8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [edi + 0x10], eax
test eax, eax
je 0x46aa0d
mov dword [eax], 0x46a494
mov eax, dword [edi + 0x10]
mov dword [eax + 8], 0x46a48c
mov edx, dword [edi + 0x10]
mov dword [edx + 4], 0x46a478
xor edx, edx
lea eax, [esp]
lea ebp, [esp + 0x10c]
push ebp
push eax
push 0x104
push edx
push 0x4c7aa4
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x46a93f
cmp dword [edi + 0x14], 0
je 0x46a953
mov dword [edi + 0x1c], 1
mov eax, dword [esp + 0x12c]
mov dword [edi + 0x20], eax
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 0xac], eax
test eax, eax
je 0x46a82b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
jmp 0x46a82d
xor ecx, ecx
mov edx, dword [edi + 0x1c]
lea ebp, [edx + edx]
add ebp, ebp
add ebp, ecx
test edx, edx
jle 0x46a8bf
xor eax, eax
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], edi
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], esi
mov ebx, eax
mov edi, dword [esp + 0x128]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x46a878
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x46a870
mov ecx, eax
mov esi, ebp
mov edi, dword [esp + 0x128]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x46a883
mov edx, dword [esp + 0x110]
mov dword [edx + ebx*4], ebp
lea ebp, [ecx + ebp + 1]
inc ebx
mov ecx, dword [esp + 0x114]
cmp ebx, dword [ecx + 0x1c]
jl 0x46a85f
mov ecx, edx
mov edi, dword [esp + 0x114]
mov ebx, dword [esp + 0x104]
mov esi, dword [esp + 0x108]
mov dword [edi + 0x24], ecx
movzx eax, byte [esp + 0x130]
test eax, eax
je 0x46a8d7
mov byte [edi + 0xa4], 0x31
jmp 0x46a8de
mov byte [edi + 0xa4], 0x30
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0x4b82ac
mov eax, dword [esp + 0x124]
mov dword [edi + 0x2c], eax
lea edx, [edi + 0x28]
push edx
call dword [edi + 0xc]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 4]
mov ebp, eax
push dword [edi + 0xac]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi + 0xac]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, edi
call fcn.0046aa28
test ebp, ebp
mov eax, 0
sete al
add esp, 0x118
pop ebp
pop edi
ret 0x10
mov ecx, edi
call fcn.0046aa28
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push 0x4c7aa4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x14], eax
test eax, eax
je 0x46a9f2
push 0x4c7ab0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 8], eax
push 0x4c7ab8
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 4], eax
push 0x4c7ac4
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0xc], eax
cmp dword [edi + 4], 0
je 0x46a9d5
test eax, eax
je 0x46a9d5
mov eax, dword [edi + 8]
test eax, eax
je 0x46a9d5
push dword [edi + 0x10]
call eax
test eax, eax
jne 0x46a7f8
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.0046aa28
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.0046aa28
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.0046aa28
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10
push dword [edi + 0xa8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
add esp, 0x118
pop ebp
pop edi
ret 0x10