Function at 0x1004756
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc8
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov ebx, ecx
call fcn.0100423b
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x1004790
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebx + 0x3c], eax
jne 0x100479b
call esi
jmp 0x1004793
push 0x7b
pop eax
test eax, eax
jne 0x10048a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100181c
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x40], eax
je 0x10048a7
push 0x1001810
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x44], eax
je 0x10048a7
push 0x1001808
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x48], eax
je 0x10048a7
push 0x10017fc
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x4c], eax
je 0x10048a7
push 0x10017f0
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x50], eax
je 0x10048a7
push 0x10017dc
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x54], eax
je 0x10048a7
push 0x10017c8
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x58], eax
je 0x10048a7
push 0x10017b0
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x5c], eax
je 0x10048a7
push 0x1001798
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x60], eax
je 0x10048a7
push 0x100177c
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x64], eax
je 0x10048a7
push 0x1001760
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x68], eax
je 0x10048a7
push 0x100174c
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x70], eax
je 0x10048a7
push 0x1001738
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x74], eax
je 0x10048a7
push 0x100172c
push dword [ebx + 0x3c]
call edi
test eax, eax
mov dword [ebx + 0x6c], eax
jne 0x10048b4
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x1004966
lea eax, [ebx + 0x1c]
push eax
push ebx
push 0x1004383
push dword [ebp + 8]
call dword [ebx + 0x40]
xor ecx, ecx
test eax, eax
sete cl
test eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x1004966
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
lea esi, [eax + eax]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [ebx + 4], eax
je 0x100490c
mov ecx, esi
mov esi, dword [ebp + 8]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1004913
mov dword [ebp - 4], 8
cmp dword [ebp - 4], 0
jne 0x1004966
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
lea edi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
lea esi, [eax + eax]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [ebx + 8], eax
je 0x100495f
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx], 1
jmp 0x1004a9a
mov dword [ebp - 4], 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004974
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x1004982
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
xor edi, edi
inc esi
cmp dword [ebp - 8], edi
je 0x1004993
push esi
push dword [ebx + 0x1c]
call dword [ebx + 0x6c]
mov eax, dword [ebx + 0x3c]
cmp eax, edi
je 0x10049a1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebx], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0x1c], edi
xor eax, eax
lea edi, [ebx + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x100a1e4]
xor edi, edi
cmp eax, edi
je 0x1004a9a
cmp dword [eax + 0xe4], edi
mov ebx, 0x1100
jge 0x10049f1
cmp dword [eax + 4], edi
je 0x1004a9a
push edi
push ebx
call sym.ISMSERV.EXE_DoLogOverride
test eax, eax
je 0x1004a9a
mov eax, dword [0x100a1e4]
mov dword [ebp - 0xc8], edi
mov eax, dword [eax + 0xe0]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x5c]
push eax
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xc4], 0xc0000561
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x58], 5
mov dword [ebp - 0xc8], 4
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
call sym.ISMSERV.EXE_DoLogEventAndTrace
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc