Function at 0x10416e1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x1048628]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 4], eax
call fcn.0104399c
mov ecx, esi
call fcn.0103f7b3
cmp eax, 4
lea eax, [ebp - 0x1cc]
mov ecx, esi
push eax
jne 0x10417a1
push 0
call fcn.01040f0d
mov esi, eax
test esi, esi
jl 0x1041a1f
lea ecx, [ebp - 0x1cc]
call fcn.01043a55
cmp eax, 3
jl 0x104179a
mov eax, dword [ebp - 0x1cc]
cmp word [eax], 0x5c
jne 0x104179a
cmp word [eax + 2], 0x5c
jne 0x104179a
push 2
pop edi
lea ecx, [ebp - 0x1cc]
call fcn.01043a55
cmp eax, edi
jl 0x10417a8
mov eax, dword [ebp - 0x1cc]
cmp word [eax + edi*2], 0x5c
lea ecx, [ebp - 0x1cc]
je 0x1041782
inc edi
call fcn.01043a55
cmp edi, eax
jle 0x1041763
jmp 0x10417a8
and word [eax + edi*2], 0
mov eax, dword [ebp - 0x1cc]
push 0xffffffffffffffff
add eax, 4
push eax
call fcn.01043fb2
jmp 0x10417a6
mov esi, 0x80070057
jmp 0x10417a8
call fcn.0103eedb
mov esi, eax
test esi, esi
jl 0x1041a1f
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0x1cc]
call fcn.01043bb9
mov esi, eax
test esi, esi
jl 0x1041a1f
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x1d0], eax
je 0x10417f6
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebp - 0x1cc]
call fcn.01043bb9
mov esi, eax
jmp 0x10417fb
mov esi, 0x8007000e
test esi, esi
jl 0x1041a0a
push ebx
push 0x100d734
call fcn.0101b668
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x1e8], ebx
je 0x10419e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100d724
push ebx
call esi
push 0x100d714
push ebx
mov edi, eax
call esi
push 0x100d704
push ebx
mov dword [ebp - 0x1d4], eax
call esi
test edi, edi
mov dword [ebp - 0x1e4], eax
je 0x10419b7
cmp dword [ebp - 0x1d4], 0
je 0x10419b7
test eax, eax
je 0x10419b7
call edi
test eax, eax
mov dword [ebp - 0x1d8], eax
je 0x10419b7
push 0x100d6ec
call fcn.0101b668
mov edi, eax
test edi, edi
mov dword [ebp - 0x1e0], edi
je 0x1041987
push 0x100d6dc
push edi
call esi
push 0x100d6d0
push edi
mov ebx, eax
call esi
push 0x100d6c4
push edi
mov dword [ebp - 8], eax
call esi
test ebx, ebx
mov dword [ebp - 0x1dc], eax
je 0x1041957
cmp dword [ebp - 8], 0
je 0x1041957
test eax, eax
je 0x1041957
and word [ebp - 0x1c0], 0
push 0x63
pop ecx
xor eax, eax
lea edi, [ebp - 0x1be]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c0]
push eax
push 0x101
call dword [ebp - 8]
test eax, eax
jne 0x1041957
push dword [ebp - 0x1d0]
call ebx
xor esi, esi
cmp eax, esi
je 0x104192d
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push 0x24
lea ecx, [ebp - 0x30]
push ecx
push esi
push 8
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
push dword [ebp - 0x1d8]
call dword [ebp - 0x1e4]
test eax, eax
jne 0x104194f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x104193f
call esi
mov esi, eax
jmp 0x104194f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
call dword [ebp - 0x1dc]
jmp 0x1041979
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1041969
call esi
mov esi, eax
jmp 0x1041979
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1e0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10419a9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1041999
call esi
mov esi, eax
jmp 0x10419a9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1d8]
call dword [ebp - 0x1d4]
jmp 0x10419d9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10419c9
call esi
mov esi, eax
jmp 0x10419d9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1e8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1041a09
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10419f9
call esi
mov esi, eax
jmp 0x1041a09
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
pop ebx
cmp dword [ebp - 0x1d0], 0
je 0x1041a1f
push dword [ebp - 0x1d0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x1cc]
call fcn.01043f5e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.01018732
leave
ret 8