Function at 0x474be0
Capabilities:
Get common file path
Get thread local storage value
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, 0x486c
call fcn.004ad6f0
mov eax, dword [0x5298e0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475d7b
mov ecx, dword [eax + 0x3e3c]
test ecx, ecx
je 0x475d7b
push 0x800
push 2
push 0x6c
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x70]
push 0x3a
push edx
mov byte [esp + 0x877], 0
call fcn.00483440
lea ecx, [esp + 0x71]
cmp eax, ecx
je 0x474c9f
lea edx, [esp + 0x70]
push 0x51ce38
push edx
call fcn.004833f0
lea ecx, [esp + 0x70]
cmp eax, ecx
je 0x474c9f
lea edx, [esp + 0x2870]
push 0x2000
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esp + 0x70], 0x5c
je 0x474c8a
lea eax, [esp + 0x2870]
push 0x51cdf4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x70]
lea edx, [esp + 0x2870]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x474cb2
lea eax, [esp + 0x70]
lea ecx, [esp + 0x2870]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 4
push 0
push 3
lea edx, [esp + 0x2884]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x475d7b
push ebx
push ebp
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x51ce1c
push esi
call ebp
lea ecx, [esp + 0x207c]
push ecx
call fcn.00473b80
add esp, 4
lea edx, [esp + 0x207c]
push edx
push 2
push 0xc0
call fcn.00484c20
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov edi, dword [esp + 0x4880]
mov ecx, dword [edi + 4]
push ecx
push 2
push 0xc1
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 8]
push eax
push 2
push 0xc2
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 8]
push 0x800
push edx
push esi
call fcn.00474b70
mov eax, dword [edi + 0xc]
add esp, 0xc
push eax
push 2
push 0xc3
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0xc]
push 0x4e20
push edx
push esi
call fcn.00474b70
mov eax, dword [edi + 0x10]
add esp, 0xc
push eax
push 2
push 0xc4
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x14]
push edx
push 2
push 0xc5
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x18]
push ecx
push 2
push 0xc6
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x1c]
push eax
push 2
push 0xc7
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x20]
push edx
push 2
push 0xc8
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x24]
push ecx
push 2
push 0xc9
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x28]
push eax
push 2
push 0xca
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x2c]
push edx
push 2
push 0xcb
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x30]
push ecx
push 2
push 0xcc
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x34]
push eax
push 2
push 0xcd
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x34]
push 0x800
push edx
push esi
call fcn.00474b70
mov eax, dword [edi + 0x38]
add esp, 0xc
push eax
push 2
push 0xce
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x3c]
push edx
push 2
push 0xcf
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x40]
push ecx
push 2
push 0xd0
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x44]
push eax
push 2
push 0xd1
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x48]
push edx
push 2
push 0xd2
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x4c]
push ecx
push 2
push 0xd3
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x50]
push eax
push 2
push 0xd4
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x54]
push edx
push 2
push 0xd5
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x58]
push ecx
push 2
push 0xd6
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x58]
push 0x1000
push eax
push esi
call fcn.00474b70
mov ecx, dword [edi + 0x5c]
add esp, 0xc
push ecx
push 2
push 0xd7
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x60]
push eax
push 2
push 0xd8
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x60]
push 0x20
push edx
push esi
call fcn.00474b70
mov eax, dword [edi + 0x64]
add esp, 0xc
push eax
push 2
push 0xd9
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x68]
push edx
push 2
push 0xda
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x6c]
push ecx
push 2
push 0xdb
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x6c]
push 0x1000
push eax
push esi
call fcn.00474b70
mov ecx, dword [edi + 0x70]
add esp, 0xc
push ecx
push 2
push 0xdc
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x74]
push eax
push 2
push 0xdd
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x74]
push 0x1000
push edx
push esi
call fcn.00474b70
mov eax, dword [edi + 0x78]
add esp, 0xc
push eax
push 2
push 0xde
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x7c]
push edx
push 2
push 0xdf
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x80]
push ecx
push 2
push 0xe0
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0x84]
push eax
push 2
push 0xe1
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x84]
push 0x1000
push edx
push esi
call fcn.00474b70
mov eax, dword [edi + 0x8c]
add esp, 0xc
push eax
push 2
push 0xe2
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0x90]
push edx
push 2
push 0xe3
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x90]
push 0x41
push ecx
push esi
call fcn.00474b70
mov edx, dword [edi + 0x94]
add esp, 0xc
push edx
push 2
push 0xe4
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x98]
push ecx
push 2
push 0xe5
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
xor eax, eax
mov ax, word [edi + 0x9c]
push eax
push 2
push 0xe6
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
xor edx, edx
mov dx, word [edi + 0x9e]
push edx
push 0
push 0xe7
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0xa0]
push ecx
push 0
push 0xe8
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0xa4]
push eax
push 0
push 0xe9
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0xb0]
push edx
push 0
push 0xea
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0xb0]
push 0x400
push ecx
push esi
call fcn.00474b70
mov edx, dword [edi + 0xa8]
add esp, 0xc
push edx
push 0
push 0xeb
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0xac]
push ecx
push 0
push 0xec
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0xb4]
push eax
push 0
push 0xed
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov eax, dword [edi + 0xb8]
cmp eax, 0x400
jl 0x475979
mov eax, 0x400
mov edx, dword [edi + 0xb4]
push eax
push edx
push esi
call fcn.00474b70
mov eax, dword [edi + 0xb8]
add esp, 0xc
push eax
push 0
push 0xee
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0xc8]
push edx
push 0
push 0xf2
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0xbc]
push ecx
push 2
push 0xef
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
push 2
push pe_nt_image_headers32
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [edi + 0x9d], 0x20
mov eax, dword [edi + 0xc0]
je 0x475b4e
test eax, eax
mov dword [esp + 0x18], eax
je 0x475b1b
mov ecx, dword [eax]
mov edx, dword [eax + 4]
or ecx, edx
je 0x475b1b
mov dword [esp + 0x14], 0
jmp 0x475aa8
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
or edx, ecx
je 0x475be5
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x475ad1
lea eax, [esp + 0x7c]
push 0x51efe8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
push 0xa
push ecx
push edx
push eax
call fcn.004b722e
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x2c]
push ecx
push str.__s_
push edx
call ebx
add esp, 0x1c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x20
mov dword [esp + 0x14], eax
jl 0x475aa4
jmp 0x475be5
lea edx, [esp + 0x3c]
push 0xa
push edx
push 0
push 0
call fcn.004b722e
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x2c]
push eax
push str.__s_
push ecx
call ebx
add esp, 0x1c
lea edx, [esp + 0x1c]
lea eax, [esp + 0x7c]
push edx
push eax
jmp 0x475bdf
test eax, eax
je 0x475bc4
cmp dword [eax], 0
je 0x475bc4
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x475b63
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xc0]
cmp dword [ecx + eax], 0
je 0x475be5
test eax, eax
je 0x475b87
lea edx, [esp + 0x7c]
push 0x51efe8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xc0]
mov edx, dword [ecx + eax]
lea eax, [esp + 0x1c]
push edx
push str.__ld_
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, 0x80
mov dword [esp + 0x14], eax
jl 0x475b5f
jmp 0x475be5
push 0
lea eax, [esp + 0x20]
push str.___ld_
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x7c]
push 0x51ce1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x80]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0xc4]
push ecx
push 0
push 0xf7
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0xcc]
push eax
push 0
push 0xf3
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
mov edx, dword [edi + 0xd0]
push edx
push 0
push 0xf4
call fcn.00484c20
add esp, 8
push eax
lea eax, [esp + 0x84]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x88]
push eax
push esi
call ebp
mov ecx, dword [edi + 0xd4]
push ecx
push 0
push 0xf5
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x80]
push eax
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x84]
push eax
push edx
push esi
call ebp
mov eax, dword [edi + 0xd8]
push eax
push 0
push 0xf6
call fcn.00484c20
add esp, 8
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
call ebp
lea edx, [esp + 0x10]
push 0
push edx
push 2
push 0x51ce1c
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x486c
ret