Function at 0x100e4b1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
xor edi, edi
push 0x118
lea eax, [ebp - 0x130]
push edi
push eax
mov dword [ebp - 4], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x134], 0x11c
call dword [0x1021e38]
mov esi, dword [sym.imp.msvcrt.dll_malloc]
mov ebx, 0x208
push ebx
call esi
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100ebc0
push ebx
push edi
push eax
call sub.msvcrt.dll_memset
mov ebx, 0x10000
push ebx
call esi
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x100eb9c
push ebx
push edi
push eax
call sub.msvcrt.dll_memset
push ebx
call esi
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x100eb9c
push ebx
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, 0x8000
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x1021e58]
xor esi, esi
cmp eax, esi
je 0x100e574
push ebx
push dword [ebp - 8]
call eax
jmp 0x100e57d
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp + 0x10], esi
je 0x100e5a9
cmp dword [ebp - 0x130], 0xa
jne 0x100e5cc
push 0x1005330
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0xc], 1
cmp edi, esi
je 0x100eb9c
jmp 0x100e5cf
cmp dword [ebp - 0x130], 0xa
jne 0x100e5cc
push 0x1005330
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x100e5cf
mov dword [ebp - 0xc], 1
jmp 0x100e5cf
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x130], 6
mov dword [ebp - 0x18], 0x1021020
jb 0x100e5e6
mov dword [ebp - 0x18], section..data
test edi, edi
jne 0x100e6e2
and dword [ebp - 0x14], esi
push 0x10000
push 0
push dword [ebp - 4]
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
shl esi, 3
xor ecx, ecx
add esp, 0xc
cmp dword [esi + edi + 4], ecx
je 0x100e653
cmp dword [ebp + 0xc], ecx
je 0x100e653
push 0x208
push ecx
push dword [ebp - 0x10]
call sub.msvcrt.dll_memset
push dword [esi + edi]
push dword [ebp + 0xc]
push 0x1005324
push ebx
push dword [ebp - 0x10]
call fcn.0100e476
mov eax, dword [0x1021e54]
add esp, 0x20
test eax, eax
je 0x100e64e
push 1
push dword [ebp - 0x10]
jmp 0x100e661
push dword [ebp - 0x10]
jmp 0x100e673
mov eax, dword [0x1021e54]
cmp eax, ecx
je 0x100e670
push 1
push dword [esi + edi]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call eax
test eax, eax
jne 0x100e6ac
jmp 0x100e683
push dword [esi + edi]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x100e6ac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x100e6a1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jb 0x100e5f1
jmp 0x100e6a8
mov dword [ebp - 0xc], 1
test edi, edi
jne 0x100e6e2
cmp dword [ebp - 0x130], 0xa
jne 0x100e6c9
push 0x1005330
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], 1
jmp 0x100e6d8
push 0x1005308
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
and dword [ebp - 0xc], 0
mov edi, eax
test edi, edi
je 0x100eb9c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10052f8
push edi
call esi
cmp dword [ebp - 0xc], 0
je 0x100e72e
mov dword [0x1021cd0], eax
test eax, eax
je 0x100eb9c
push 0x10052e8
push edi
call esi
mov dword [0x1021cd8], eax
test eax, eax
je 0x100eb9c
push 0x10052d4
push edi
call esi
cmp dword [0x1021cd0], 0
mov dword [0x1021ce0], eax
jmp 0x100e75f
mov dword [0x1021cd4], eax
test eax, eax
je 0x100eb9c
push 0x10052e8
push edi
call esi
mov dword [0x1021cdc], eax
test eax, eax
je 0x100eb9c
push 0x10052d4
push edi
call esi
mov dword [0x1021ce4], eax
test eax, eax
je 0x100eb9c
push 0x10052c0
push edi
call esi
push 0x10052ac
push edi
mov dword [0x1021ce8], eax
call esi
push 0x1005294
push edi
mov dword [0x1021cec], eax
call esi
push 0x100527c
push edi
mov dword [0x1021cf0], eax
call esi
push 0x1005264
push edi
mov dword [0x1021cf4], eax
call esi
push 0x100523c
push edi
mov dword [0x1021cf8], eax
call esi
push 0x1005218
push edi
mov dword [0x1021cfc], eax
call esi
push 0x100520c
push edi
mov dword [0x1021d00], eax
call esi
push 0x1005200
push edi
mov dword [0x1021d04], eax
call esi
push 0x10051ec
push edi
mov dword [0x1021d08], eax
call esi
push 0x10051d8
push edi
mov dword [0x1021d0c], eax
call esi
push 0x10051c8
push edi
mov dword [0x1021d10], eax
call esi
push 0x10051c0
push edi
mov dword [0x1021d14], eax
call esi
push 0x10051b0
push edi
mov dword [0x1021d18], eax
call esi
push 0x1005194
push edi
mov dword [0x1021d1c], eax
call esi
push 0x1005188
push edi
mov dword [0x1021d20], eax
call esi
push 0x1005174
push edi
mov dword [0x1021d24], eax
call esi
push 0x100515c
push edi
mov dword [0x1021d28], eax
call esi
push 0x1005144
push edi
mov dword [0x1021d2c], eax
call esi
push 0x100512c
push edi
mov dword [0x1021d30], eax
call esi
mov dword [0x1021d34], eax
push 0x1005114
push edi
call esi
push 0x1005100
push edi
mov dword [0x1021d38], eax
call esi
push 0x10050f0
push edi
mov dword [0x1021d3c], eax
call esi
push 0x10050e0
push edi
mov dword [0x1021d40], eax
call esi
push 0x10050d0
push edi
mov dword [0x1021d44], eax
call esi
push 0x10050c0
push edi
mov dword [0x1021d48], eax
call esi
push 0x10050b0
push edi
mov dword [0x1021d4c], eax
call esi
push 0x1005098
push edi
mov dword [0x1021d50], eax
call esi
push 0x1005088
push edi
mov dword [0x1021d54], eax
call esi
push 0x1005074
push edi
mov dword [0x1021d58], eax
call esi
push 0x1005064
push edi
mov dword [0x1021d5c], eax
call esi
push 0x1005050
push edi
mov dword [0x1021d60], eax
call esi
push 0x1005038
push edi
mov dword [0x1021d64], eax
call esi
push 0x1005024
push edi
mov dword [0x1021d68], eax
call esi
push 0x1005010
push edi
mov dword [0x1021d6c], eax
call esi
push 0x1004ffc
push edi
mov dword [0x1021d70], eax
call esi
push 0x1004fe4
push edi
mov dword [0x1021d74], eax
call esi
push 0x1004fd0
push edi
mov dword [0x1021d78], eax
call esi
push 0x1004fbc
push edi
mov dword [0x1021d7c], eax
call esi
push 0x1004fa8
push edi
mov dword [0x1021d80], eax
call esi
push 0x1004f98
mov dword [0x1021d84], eax
push edi
call esi
push 0x1004f80
push edi
mov dword [0x1021d88], eax
call esi
push 0x1004f68
push edi
mov dword [0x1021d8c], eax
call esi
push 0x1004f58
push edi
mov dword [0x1021d90], eax
call esi
push 0x1004f48
push edi
mov dword [0x1021d94], eax
call esi
push 0x1004f30
push edi
mov dword [0x1021d98], eax
call esi
push 0x1004f1c
push edi
mov dword [0x1021d9c], eax
call esi
push 0x1004f0c
push edi
mov dword [0x1021da0], eax
call esi
push 0x1004ef0
push edi
mov dword [0x1021da4], eax
call esi
push 0x1004ed8
push edi
mov dword [0x1021da8], eax
call esi
push 0x1004ec8
push edi
mov dword [0x1021dac], eax
call esi
push 0x1004eb8
push edi
mov dword [0x1021db0], eax
call esi
push 0x1004ea4
push edi
mov dword [0x1021db4], eax
call esi
push 0x1004e90
push edi
mov dword [0x1021db8], eax
call esi
push 0x1004e78
push edi
mov dword [0x1021dbc], eax
call esi
push 0x1004e60
push edi
mov dword [0x1021dc0], eax
call esi
push 0x1004e48
push edi
mov dword [0x1021dc4], eax
call esi
push 0x1004e30
push edi
mov dword [0x1021dc8], eax
call esi
push 0x1004e24
push edi
mov dword [0x1021dcc], eax
call esi
push 0x1004e14
push edi
mov dword [0x1021dd0], eax
call esi
push 0x1004e00
push edi
mov dword [0x1021dd4], eax
call esi
push 0x1004dec
push edi
mov dword [0x1021dd8], eax
call esi
push 0x1004dd8
push edi
mov dword [0x1021ddc], eax
call esi
push 0x1004dc8
push edi
mov dword [0x1021de0], eax
call esi
push 0x1004db8
push edi
mov dword [0x1021de4], eax
call esi
push 0x1004da4
push edi
mov dword [0x1021de8], eax
call esi
push 0x1004d90
push edi
mov dword [0x1021dec], eax
call esi
push 0x1004d80
push edi
mov dword [0x1021df0], eax
call esi
push 0x1004d6c
push edi
mov dword [0x1021df4], eax
call esi
push 0x1004d54
push edi
mov dword [0x1021df8], eax
call esi
push 0x1004d40
push edi
mov dword [0x1021dfc], eax
call esi
push 0x1004d2c
push edi
mov dword [0x1021e00], eax
call esi
push 0x1004d18
push edi
mov dword [0x1021e04], eax
call esi
push 0x1004d08
push edi
mov dword [0x1021e08], eax
call esi
push 0x1004cf0
push edi
mov dword [0x1021e0c], eax
call esi
push 0x1004ce0
push edi
mov dword [0x1021e10], eax
call esi
push 0x1004cc4
push edi
mov dword [0x1021e14], eax
call esi
push 0x1004ca8
push edi
mov dword [0x1021e18], eax
call esi
push 0x1004c88
push edi
mov dword [0x1021e1c], eax
call esi
push 0x1004c74
push edi
mov dword [0x1021e20], eax
call esi
push 0x1004c64
push edi
mov dword [0x1021e24], eax
call esi
mov dword [0x1021e28], eax
push 0x1004c54
push edi
call esi
push 0x1004c40
push edi
mov dword [0x1021e2c], eax
call esi
mov dword [0x1021e30], eax
push dword [ebp - 0x10]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
cmp dword [ebp - 8], 0
pop ecx
je 0x100ebb4
push dword [ebp - 8]
call esi
pop ecx
cmp dword [ebp - 4], 0
je 0x100ebc0
push dword [ebp - 4]
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret