Function at 0x10054650
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4669
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100dcd6c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x100ddd68], 0
je 0x1005468b
mov al, 1
jmp 0x100546ed
and dword [ebp - 4], 0
lea edi, [ebp - 0x2c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push ecx
mov edi, 0x104
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x2c]
call fcn.1004ec75
push 8
pop ebx
cmp dword [ebp - 0x18], ebx
lea esi, [ebp - 0x2c]
push 0x100127a8
cmovae esi, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
test edi, edi
jne 0x10054707
lea ecx, [ebp - 0x2c]
call fcn.10053264
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b2d85
leave
ret
cmp edi, 0x104
jb 0x1005473f
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.1004ec75
cmp dword [ebp - 0x18], ebx
lea esi, [ebp - 0x2c]
push 0x100127a8
cmovae esi, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100546e3
cmp eax, edi
jae 0x100546e3
cmp dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push 0x5c
push ecx
call fcn.1005009a
lea ecx, [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x100546e6
push 0xc
push 0x1000d050
push 0xffffffffffffffff
inc eax
push eax
call fcn.1004f336
cmp dword [ebp - 0x18], ebx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x100546e3
push 0x10017630
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ddd6c], eax
test eax, eax
jne 0x100547ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100546e3
push 0x10017650
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ddd70], eax
test eax, eax
je 0x1005479f
push 0x10017670
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ddd74], eax
test eax, eax
je 0x1005479f
push 0x10017690
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ddd78], eax
test eax, eax
je 0x1005479f
push 0x100176a4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ddd7c], eax
test eax, eax
je 0x1005479f
push 0x100176c0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ddd80], eax
test eax, eax
je 0x1005479f
push 0x100176e0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ddd84], eax
test eax, eax
je 0x1005479f
push 0x10017700
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ddd88], eax
test eax, eax
je 0x1005479f
lea eax, [ebp - 0x30]
mov ecx, 0x100ddd68
push eax
call fcn.1004e7e8
cmp dword [ebp - 0x30], 0
je 0x10054863
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2c]
call fcn.10053264
jmp 0x10054687