Function at 0x40b450
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c580
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x53c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x54c]
mov ecx, 0x14f
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 0x40b99c
push 0xff
push 0
lea eax, [ebp - 0x344]
push eax
call fcn.00418870
add esp, 0xc
push 0x64
push 0
lea eax, [ebp - 0x3b0]
push eax
call fcn.00418870
add esp, 0xc
push 0x64
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.00418870
add esp, 0xc
push 0x1f4
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00418870
add esp, 0xc
push 0xb
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.00418870
add esp, 0xc
push 0x15
push 0
lea eax, [ebp - 0x450]
push eax
call fcn.00418870
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 6
mov dword [ebp - 0x23c], eax
push 0xa
mov eax, dword [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x23c]
add eax, 0x1e
mov dword [ebp - 0x23c], eax
push 0x14
mov eax, dword [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x450]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x23c]
add eax, 0x14
mov dword [ebp - 0x23c], eax
push str.Guild
lea eax, [ebp - 0x344]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x344]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x344]
push eax
call fcn.0041acc0
add esp, 8
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x450]
mov esi, esp
push edx
push str.AscII_d
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
lea eax, [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x344]
push ecx
call fcn.0041acc0
add esp, 8
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x344]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x344]
push eax
call fcn.0041acc0
add esp, 8
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x344]
push ecx
call fcn.0041acc0
add esp, 8
push str..txt
lea eax, [ebp - 0x344]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9c8
lea eax, [ebp - 0x344]
push eax
call fcn.0041ba10
add esp, 8
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
je 0x40b82b
mov eax, dword [ebp - 0x468]
push eax
call fcn.0041b1b0
add esp, 4
mov esi, esp
lea eax, [ebp - 0x344]
push eax
push str._O__Disband_Guild___Deleting_guild_file..._:_Name__s_
push 0x4884a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
push 0x4884a0
call fcn.00413cf0
add esp, 4
mov esi, esp
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.00418a80
test eax, eax
je 0x40b78f
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
mov dword [eax], 0xfb517
lea eax, [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov eax, 0xf14
mov ecx, dword [ebp - 0x230]
mov word [ecx], ax
lea eax, [ebp - 0x212]
mov dword [ebp - 0x23c], eax
push 0xa
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x23c]
add eax, 0xa
mov dword [ebp - 0x23c], eax
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x6b854]
mov ecx, dword [eax + 0x24]
call fcn.00417b20
mov dword [ebp - 0x548], eax
mov ecx, dword [ebp - 0x548]
mov dword [ebp - 0x45c], ecx
jmp 0x40b826
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
mov dword [eax], 0xfb517
lea eax, [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov eax, 0xf15
mov ecx, dword [ebp - 0x230]
mov word [ecx], ax
lea eax, [ebp - 0x212]
mov dword [ebp - 0x23c], eax
push 0xa
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x23c]
add eax, 0xa
mov dword [ebp - 0x23c], eax
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x6b854]
mov ecx, dword [eax + 0x24]
call fcn.00417b20
mov dword [ebp - 0x548], eax
mov ecx, dword [ebp - 0x548]
mov dword [ebp - 0x45c], ecx
jmp 0x40b8c2
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
mov dword [eax], 0xfb517
lea eax, [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov eax, 0xf15
mov ecx, dword [ebp - 0x230]
mov word [ecx], ax
lea eax, [ebp - 0x212]
mov dword [ebp - 0x23c], eax
push 0xa
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x23c]
add eax, 0xa
mov dword [ebp - 0x23c], eax
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x6b854]
mov ecx, dword [eax + 0x24]
call fcn.00417b20
mov dword [ebp - 0x548], eax
mov ecx, dword [ebp - 0x548]
mov dword [ebp - 0x45c], ecx
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x548], eax
mov ecx, dword [ebp - 0x548]
add ecx, 0x86
mov dword [ebp - 0x548], ecx
cmp dword [ebp - 0x548], 7
ja case.0x40b8fa.1
mov edx, dword [ebp - 0x548]
movzx eax, byte [edx + 0x40ba68]
jmp dword [eax*4 + 0x40ba60]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x6b854]
mov dword [ebp - 0x534], edx
mov eax, dword [ebp - 0x534]
mov dword [ebp - 0x540], eax
cmp dword [ebp - 0x540], 0
je 0x40b95a
mov esi, esp
push 1
mov ecx, dword [ebp - 0x540]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x540]
mov eax, dword [edx]
call eax
cmp esi, esp
call fcn.00418a80
mov dword [ebp - 0x548], eax
mov ecx, dword [ebp - 0x548]
mov dword [ebp - 0x54c], ecx
jmp 0x40b964
mov dword [ebp - 0x54c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax*4 + 0x6b854], 0
jmp 0x40b99c
jmp 0x40b98c
mov dword [ebp - 4], 0xffffffff
jmp 0x40b99c
push edx
mov ecx, ebp
push eax
lea edx, [0x40b9d8]
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, 0x54c
cmp ebp, esp
call fcn.00418a80
mov esp, ebp
pop ebp
ret 8