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

Disassembly:
mov eax, 0x4828
call fcn.10033810
mov eax, dword [0x10044ee0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10004243
mov ecx, dword [eax + 0x3e0c]
test ecx, ecx
je 0x10004243
lea ecx, [esp + 0x282c]
push 0x2000
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x800
push 2
push 0x6c
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x30]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esp + 0x2c], 0x5c
je 0x10003397
lea eax, [esp + 0x282c]
push 0x100420a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x282c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x2840]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004243
push ebx
push ebp
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push 0
push ecx
push 2
push 0x100420c0
push esi
call ebx
lea edx, [esp + 0x2038]
push edx
call fcn.10002320
add esp, 4
lea eax, [esp + 0x2038]
push eax
push 2
push 0xc0
call fcn.1000cb20
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edi, dword [esp + 0x483c]
mov edx, dword [edi + 4]
push edx
push 2
push 0xc1
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 8]
push ecx
push 2
push 0xc2
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 8]
push 0x800
push eax
push esi
call fcn.100032b0
mov ecx, dword [edi + 0xc]
add esp, 0xc
push ecx
push 2
push 0xc3
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0xc]
push 0x4e20
push eax
push esi
call fcn.100032b0
mov ecx, dword [edi + 0x10]
add esp, 0xc
push ecx
push 2
push 0xc4
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x14]
push eax
push 2
push 0xc5
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
call ebx
mov edx, dword [edi + 0x18]
push edx
push 2
push 0xc6
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x1c]
push ecx
push 2
push 0xc7
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x20]
push eax
push 2
push 0xc8
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x24]
push edx
push 2
push 0xc9
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0xca
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x2c]
push eax
push 2
push 0xcb
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x30]
push edx
push 2
push 0xcc
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x34]
push ecx
push 2
push 0xcd
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x34]
push 0x800
push eax
push esi
call fcn.100032b0
mov ecx, dword [edi + 0x38]
add esp, 0xc
push ecx
push 2
push 0xce
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x3c]
push eax
push 2
push 0xcf
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x40]
push edx
push 2
push 0xd0
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x44]
push ecx
push 2
push 0xd1
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x48]
push eax
push 2
push 0xd2
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x4c]
push edx
push 2
push 0xd3
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x50]
push ecx
push 2
push 0xd4
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x54]
push eax
push 2
push 0xd5
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x58]
push edx
push 2
push 0xd6
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x58]
push 0x1000
push ecx
push esi
call fcn.100032b0
mov edx, dword [edi + 0x5c]
add esp, 0xc
push edx
push 2
push 0xd7
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x60]
push ecx
push 2
push 0xd8
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x60]
push 0x20
push eax
push esi
call fcn.100032b0
mov ecx, dword [edi + 0x64]
add esp, 0xc
push ecx
push 2
push 0xd9
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x68]
push eax
push 2
push 0xda
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x6c]
push edx
push 2
push 0xdb
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x6c]
push 0x1000
push ecx
push esi
call fcn.100032b0
mov edx, dword [edi + 0x70]
add esp, 0xc
push edx
push 2
push 0xdc
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x74]
push ecx
push 2
push 0xdd
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x74]
push 0x1000
push eax
push esi
call fcn.100032b0
mov ecx, dword [edi + 0x78]
add esp, 0xc
push ecx
push 2
push 0xde
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x7c]
push eax
push 2
push 0xdf
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x80]
push edx
push 2
push 0xe0
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0x84]
push ecx
push 2
push 0xe1
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x84]
push 0x1000
push eax
push esi
call fcn.100032b0
mov ecx, dword [edi + 0x8c]
add esp, 0xc
push ecx
push 2
push 0xe2
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0x90]
push eax
push 2
push 0xe3
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x90]
push 0x41
push edx
push esi
call fcn.100032b0
mov eax, dword [edi + 0x94]
add esp, 0xc
push eax
push 2
push 0xe4
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0x98]
push edx
push 2
push 0xe5
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
xor ecx, ecx
mov cx, word [edi + 0x9c]
push ecx
push 2
push 0xe6
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
xor eax, eax
mov ax, word [edi + 0x9e]
push eax
push 0
push 0xe7
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0xa0]
push edx
push 0
push 0xe8
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0xa4]
push ecx
push 0
push 0xe9
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0xb0]
push eax
push 0
push 0xea
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0xb0]
push 0x400
push edx
push esi
call fcn.100032b0
mov eax, dword [edi + 0xa8]
add esp, 0xc
push eax
push 0
push 0xeb
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0xac]
push edx
push 0
push 0xec
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0xb4]
push ecx
push 0
push 0xed
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0xb8]
cmp eax, 0x400
jl 0x10003f54
mov eax, 0x400
push eax
mov eax, dword [edi + 0xb4]
push eax
push esi
call fcn.100032b0
mov ecx, dword [edi + 0xb8]
add esp, 0xc
push ecx
push 0
push 0xee
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0xbc]
push eax
push 2
push 0xef
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
push 2
push 0xf0
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x10004074
cmp dword [eax], 0
je 0x10004074
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x10004013
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xc0]
cmp dword [ecx + eax], 0
je 0x10004095
test eax, eax
je 0x10004037
lea edx, [esp + 0x38]
push 0x100420dc
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 + 0x18]
push edx
push str.__ld_
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x38]
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 0x1000400f
jmp 0x10004095
push 0
lea eax, [esp + 0x1c]
push str.___ld_
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x38]
push 0x100420c0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0xc4]
push ecx
push 0
push 0xf1
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0xc8]
push eax
push 0
push 0xf2
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0xcc]
push edx
push 0
push 0xf3
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
mov ecx, dword [edi + 0xd0]
push ecx
push 0
push 0xf4
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x3c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
push esi
call ebx
mov eax, dword [edi + 0xd4]
push eax
push 0
push 0xf5
call fcn.1000cb20
add esp, 8
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call ebx
mov edx, dword [edi + 0xd8]
push edx
push 0
push 0xf6
call fcn.1000cb20
add esp, 8
push eax
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
push esi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
push 2
push 0x100420c0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x4828
ret