Function at 0x410970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c770
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x404
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x414]
mov ecx, 0x101
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x485010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x6b854], 0
je 0x410cb9
push 0xff
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00418870
add esp, 0xc
push 0x64
push 0
lea eax, [ebp - 0x190]
push eax
call fcn.00418870
add esp, 0xc
push 0x64
push 0
lea eax, [ebp - 0x1fc]
push eax
call fcn.00418870
add esp, 0xc
push 0xff
push 0
lea eax, [ebp - 0x318]
push eax
call fcn.00418870
add esp, 0xc
push 0xb
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00418870
add esp, 0xc
push 0x15
push 0
lea eax, [ebp - 0x338]
push eax
call fcn.00418870
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 6
mov dword [ebp - 0x344], eax
push 0xa
mov eax, dword [ebp - 0x344]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x344]
add eax, 0xa
mov dword [ebp - 0x344], eax
push 0x14
mov eax, dword [ebp - 0x344]
push eax
lea ecx, [ebp - 0x338]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x344]
add eax, 0x14
mov dword [ebp - 0x344], eax
push str.Guild
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x338]
mov esi, esp
push edx
push str.AscII_d
lea eax, [ebp - 0x1fc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041acc0
add esp, 8
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x318]
push ecx
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041acc0
add esp, 8
push str..txt
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push str.Guild
call fcn.0041d3e0
add esp, 4
lea eax, [ebp - 0x318]
push eax
call fcn.0041d3e0
add esp, 4
push 0x46eb10
lea eax, [ebp - 0x124]
push eax
call fcn.0041ba10
add esp, 8
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0
je 0x410c60
mov esi, esp
lea eax, [ebp - 0x210]
push eax
push str.guildsman_name_________s_n
lea ecx, [ebp - 0x190]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
mov eax, dword [ebp - 0x350]
push eax
lea ecx, [ebp - 0x190]
push ecx
call fcn.004190a0
add esp, 4
push eax
push 1
lea edx, [ebp - 0x190]
push edx
call fcn.0041d100
add esp, 0x10
cmp dword [ebp - 0x350], 0
je 0x410c23
mov eax, dword [ebp - 0x350]
push eax
call fcn.0041b1b0
add esp, 4
mov esi, esp
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x210]
push ecx
push str._O__New_Guildsman_Add:__s__In_Guild:__s
lea edx, [ebp - 0x1fc]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp esi, esp
call fcn.00418a80
lea eax, [ebp - 0x1fc]
push eax
call fcn.00413cf0
add esp, 4
jmp 0x410c94
mov esi, esp
lea eax, [ebp - 0x338]
push eax
push str._X__Cannot_Add_Guildsman__Guild:__s_Not_Found
lea ecx, [ebp - 0x1fc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
lea eax, [ebp - 0x1fc]
push eax
call fcn.00413cf0
add esp, 4
jmp 0x410ca9
mov dword [ebp - 4], 0xffffffff
jmp 0x410cb9
push edx
mov ecx, ebp
push eax
lea edx, [0x410cf8]
call fcn.00418a20
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419b10
add esp, 0x414
cmp ebp, esp
call fcn.00418a80
mov esp, ebp
pop ebp
ret 8