Function at 0x100049e0
Capabilities:
Get process image filename
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x10055020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x534], 0
cmp byte [edi + 0x68], 0
jne 0x10005045
mov esi, dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp esi, eax
jne 0x10004a38
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
jmp 0x10004a46
push esi
push 0
push 0x1000
call dword [sym.imp.kernel32.dll_OpenProcess]
test eax, eax
je 0x10004e33
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.kernel32.dll_K32GetProcessImageFileNameA]
test eax, eax
je 0x10004e33
xorps xmm0, xmm0
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x414], 0
movups xmmword [ebp - 0x428], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004a90
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.10002de0
mov dword [ebp - 4], 0
lea esi, [ebp - 0x428]
cmp dword [ebp - 0x414], 0x10
cmovae esi, dword [ebp - 0x428]
or edx, 0xffffffff
cmp dword [ebp - 0x418], 0
je 0x10004b3e
push 0x100
lea eax, [ebp - 0x528]
push 0
push eax
call fcn.10023250
add esp, 0xc
mov ecx, 0x1004c59c
nop
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x528], 1
cmp ecx, 0x1004c59e
jne 0x10004af0
mov eax, dword [ebp - 0x418]
or edx, 0xffffffff
dec eax
mov ecx, edx
cmp eax, edx
cmovb ecx, eax
movzx eax, byte [ecx + esi]
add ecx, esi
mov al, byte [ebp + eax - 0x528]
test al, al
jne 0x10004b3a
cmp ecx, esi
je 0x10004b3e
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x528]
test al, al
je 0x10004b26
sub ecx, esi
jmp 0x10004b41
or ecx, 0xffffffff
inc ecx
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 0
movups xmmword [ebp - 0x564], xmm0
cmp eax, ecx
jb 0x100050ac
sub eax, ecx
cmp eax, 0xffffffff
cmovb edx, eax
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
add eax, ecx
lea ecx, [ebp - 0x564]
push edx
push eax
call fcn.10002de0
mov dword [ebp - 0x534], 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x550]
mov ecx, dword [ebp - 0x554]
sub eax, ecx
cmp eax, 1
jb 0x10004c63
cmp dword [ebp - 0x550], 0x10
lea esi, [ebp - 0x564]
lea edx, [ecx + 1]
cmovae esi, dword [ebp - 0x564]
mov dword [ebp - 0x554], edx
cmp esi, 0x1004c599
jae 0x10004c14
lea eax, [esi + ecx]
cmp eax, 0x1004c598
jb 0x10004c14
cmp esi, 0x1004c598
ja 0x10004c05
mov dword [ebp - 0x52c], 0
jmp 0x10004c1e
mov eax, esi
sub eax, 0x1004c598
mov dword [ebp - 0x52c], eax
jmp 0x10004c1e
mov dword [ebp - 0x52c], 1
push edx
lea eax, [esi + 1]
push esi
push eax
call fcn.100214a0
push dword [ebp - 0x52c]
push 0x1004c598
push esi
call fcn.100214a0
mov edx, dword [ebp - 0x52c]
mov eax, 1
sub eax, edx
push eax
lea eax, [edx + 0x1004c599]
lea ecx, [esi + edx]
push eax
push ecx
call fcn.100214a0
add esp, 0x24
lea eax, [ebp - 0x564]
jmp 0x10004c82
push 1
sub esp, 8
mov byte [ebp - 0x52c], 0
lea ecx, [ebp - 0x564]
push dword [ebp - 0x52c]
push 1
call fcn.10007650
mov dword [ebp - 0x53c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x54c], xmm0
mov dword [ebp - 0x538], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x534], 3
movups xmmword [ebp - 0x54c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x53c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x538]
mov eax, edx
mov ecx, dword [ebp - 0x53c]
sub eax, ecx
cmp eax, 1
jb 0x10004d12
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x53c], eax
lea eax, [ebp - 0x54c]
cmovae eax, dword [ebp - 0x54c]
mov word [eax + ecx], 0x22
lea eax, [ebp - 0x54c]
jmp 0x10004d33
push 1
push 0x1004c598
mov byte [ebp - 0x52c], 0
lea ecx, [ebp - 0x54c]
push dword [ebp - 0x52c]
push 1
call fcn.10006bc0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x56c], 0
lea esi, [edi + 8]
mov dword [ebp - 0x568], 0
movups xmmword [ebp - 0x57c], xmm0
movups xmmword [ebp - 0x58c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x56c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x57c]
movq qword [ebp - 0x530], xmm0
mov dword [ebp - 0x534], 7
cmp esi, eax
je 0x10004dce
mov ecx, esi
call fcn.10002a70
movups xmm0, xmmword [ebp - 0x58c]
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x568], 0xf
movups xmmword [esi], xmm0
mov byte [ebp - 0x57c], 0
movq xmm0, qword [ebp - 0x530]
movq qword [esi + 0x10], xmm0
mov esi, 7
mov dword [ebp - 0x534], esi
and esi, 0xfffffffb
mov dword [ebp - 0x534], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x57c]
call fcn.10002a70
and esi, 0xfffffffd
mov dword [ebp - 0x534], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54c]
call fcn.10002a70
and esi, 0xfffffffe
mov dword [ebp - 0x534], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x564]
call fcn.10002a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.10002a70
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x52c], esp
push 0x21
movups xmmword [ecx], xmm0
push str.Loading_assembler_into_process...
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 4
push 0
push dword [edi + 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
mov eax, dword [edi + 0x20]
add esp, 0x20
test eax, eax
jne 0x10004ebb
call fcn.10004730
mov dword [edi + 0x20], eax
test eax, eax
jne 0x10004ebb
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x52c], esp
push 0x18
movups xmmword [ecx], xmm0
push str.Assembler_DLL_not_found.
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.10002de0
mov dword [ebp - 4], 5
jmp 0x1000507b
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.WeMod_1
push eax
call esi
push str.WeMod_2
push dword [edi + 0x20]
mov dword [edi + 0x58], eax
call esi
push str.WeMod_4
push dword [edi + 0x20]
mov dword [edi + 0x60], eax
call esi
push str.WeMod_5
push dword [edi + 0x20]
mov dword [edi + 0x54], eax
call esi
push str.WeMod_6
push dword [edi + 0x20]
mov dword [edi + 0x50], eax
call esi
push str.WeMod_7
push dword [edi + 0x20]
mov dword [edi + 0x5c], eax
call esi
cmp dword [edi + 0x58], 0
mov dword [edi + 0x64], eax
je 0x10005049
cmp dword [edi + 0x60], 0
je 0x10005049
cmp dword [edi + 0x54], 0
je 0x10005049
cmp dword [edi + 0x50], 0
je 0x10005049
cmp dword [edi + 0x5c], 0
je 0x10005049
test eax, eax
je 0x10005049
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x52c], esp
push 0x11
movups xmmword [ecx], xmm0
push str.Assembler_loaded.
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 7
push 0
push dword [edi + 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
mov eax, dword [edi + 0x50]
lea esi, [edi + 0x48]
add esp, 0x20
push esi
push dword [edi + 4]
call eax
test eax, eax
je 0x10004fe9
push eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x52c], esp
push 0x38
movups xmmword [ecx], xmm0
push str.Failed_to_create_global_assembler_context_with_error__d.
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 8
push 3
push dword [edi + 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x24
jmp 0x1000508f
lea eax, [edi + 0x4c]
push eax
push dword [esi]
mov eax, dword [edi + 0x54]
call eax
test eax, eax
je 0x10005041
push eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x52c], esp
push 0x35
movups xmmword [ecx], xmm0
push str.Failed_to_create_symbol_script_context_with_error__d.
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 9
push 3
push dword [edi + 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x24
jmp 0x1000508f
mov byte [edi + 0x68], 1
mov al, 1
jmp 0x10005091
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x52c], esp
push 0x25
movups xmmword [ecx], xmm0
push str.Assembler_exports_could_not_be_found.
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 6
push 3
push dword [edi + 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001fd2c
mov esp, ebp
pop ebp
ret
call fcn.100064d0
int3