Function at 0x409dfc
Capabilities:
Delete file

Disassembly:
mov eax, 0x4671e9
call fcn.00446518
sub esp, 0x934
push ebx
push esi
push edi
mov esi, ecx
call fcn.00406a84
add eax, 0xcc
xor ebx, ebx
mov edi, 0x4af930
push ebx
mov ecx, edi
mov dword [ebp - 0x60], eax
call fcn.00404975
push dword [esi + 0x54]
mov ecx, edi
push ebx
call fcn.00404927
push 2
push str.data_darkeden
call fcn.00422b00
xor edi, edi
inc edi
cmp dword [esi], edi
pop ecx
pop ecx
mov dword [ebp - 0x1c], 8
jle 0x409e77
push ebx
push str.data_image_guildmark.spk_header.inf
lea ecx, [ebp - 0x24]
call fcn.00404192
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00403b6d
test al, al
je 0x409e5c
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x409e4c
mov eax, dword [ecx]
push 0xa
push 0x20
lea edx, [ebp - 0xa0]
push edx
call dword [eax + 0x2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004465f9
pop ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
call fcn.00422bf0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x483e84
call fcn.00422bf0
lea ecx, [ebp - 0x80]
call fcn.004038a2
push 4
push str.data_info_guildmapper.inf
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.00404192
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00403b6d
test al, al
je 0x409ead
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
call fcn.00403769
lea ecx, [ebp - 0x34]
call fcn.00422bf0
push ebx
push ebx
push edi
push edi
push edi
push ebx
call fcn.0041a07c
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 8]
add esp, 0x18
cmp ecx, eax
mov dword [ebp - 0x18], ecx
jne 0x40a0ed
call fcn.0041a4c6
push str.__GuildMarkHeader.inf
lea eax, [esi + 0x8c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00403c81
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 8
call fcn.00402426
push dword [ebp - 0x1c]
lea eax, [ebp - 0x508]
push eax
mov byte [ebp - 4], 9
call fcn.00407a7b
pop ecx
pop ecx
push 0xa
mov ecx, eax
call fcn.0040551d
push 0x484554
lea ecx, [ebp - 0x508]
call fcn.00402a0f
lea ecx, [ebp - 0x508]
call fcn.004018fb
push edi
push 4
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x1bc]
call fcn.00409288
push 4
push ebx
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0xa
call fcn.004079ba
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00406c27
mov eax, dword [eax]
push edi
push ebx
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 0x18], eax
call fcn.004079ba
push dword [ebp - 0x18]
call fcn.00456066
pop ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1bc]
push eax
mov dword [ebp - 0x10], eax
call fcn.00407912
lea ecx, [ebp - 0x1bc]
call fcn.004073f1
push 0x30000004
push str.data_image_guildmark.spk_header.inf
lea ecx, [ebp - 0x54]
call fcn.004069dc
mov ecx, dword [ebp - 0x50]
cmp ecx, ebx
mov byte [ebp - 4], 0xb
je 0x409fd0
push dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax + 0x20]
lea ecx, [ebp - 0x54]
call fcn.00422bf0
push dword [ebp - 0x10]
call fcn.0045606b
pop ecx
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 4
push str.data_info_guildmapper.inf
lea ecx, [ebp - 0x724]
call fcn.00402426
lea eax, [ebp - 0x724]
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.004034e8
lea ecx, [ebp - 0x724]
call fcn.004018fb
push edi
push 4
push str.data_info_guildversion.inf
lea ecx, [ebp - 0x83c]
call fcn.00402426
push 4
add esi, 4
push esi
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 0xd
call fcn.00401fbd
lea ecx, [ebp - 0x83c]
call fcn.004018fb
call fcn.00422b20
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 0xc
call fcn.00402142
lea ecx, [ebp - 0x724]
mov byte [ebp - 4], 0xb
call fcn.00402142
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x54], 0x483e84
call fcn.00422bf0
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 9
call fcn.00407b80
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 8
call fcn.00402142
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401499
mov bl, 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0x483e84
call fcn.00422bf0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00403848
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x10]
mov eax, dword [esi + 0x8c]
push ecx
push eax
lea eax, [ebp - 0x60c]
push str._s__d.jpg
push eax
mov dword [ebp - 0x14], ecx
call fcn.00447724
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x60c]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004038d3
add esp, 0x1c
test al, al
je 0x40a317
push dword [ebp - 0x14]
lea ecx, [ebp - 0x80]
call fcn.004034cc
cmp eax, ebx
je 0x40a14a
mov ecx, eax
movzx eax, word [eax]
mov dword [ebp - 0x14], eax
jmp 0x40a188
push 2
call fcn.0045603b
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x40a166
mov ecx, eax
call fcn.0040313f
jmp 0x40a168
xor eax, eax
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], eax
call fcn.0040373c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x1c], 2
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp ecx, ebx
je 0x40a37c
cmp eax, ebx
jl 0x40a395
mov word [ecx], ax
push str.__GuildMark.spk
lea eax, [esi + 0x8c]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x20], 2
call fcn.00403c81
add esp, 0xc
push edi
push 4
push dword [ebp - 0x40]
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 4
call fcn.00402426
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 5
call fcn.00401fbd
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
lea edx, [ebp - 0x3f0]
push edx
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
lea edx, [ebp - 0x3f0]
push edx
call dword [eax]
lea ecx, [ebp - 0x3f0]
call fcn.004018fb
push dword [ebp - 0x14]
lea eax, [ebp - 0x940]
push str.data_image_guildmark.spk__05d.spk
push eax
call fcn.00447724
add esp, 0xc
push edi
push 4
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2d8]
call fcn.00409288
push 4
push ebx
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 6
call fcn.004079ba
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.00406c27
mov eax, dword [eax]
push edi
push ebx
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x14], eax
call fcn.004079ba
push dword [ebp - 0x14]
call fcn.00456066
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2d8]
push eax
mov dword [ebp - 0x10], eax
call fcn.00407912
lea ecx, [ebp - 0x2d8]
call fcn.004073f1
push 0x30000004
lea eax, [ebp - 0x940]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004069dc
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x40a2b6
push dword [ebp - 0x14]
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax + 0x20]
lea ecx, [ebp - 0x5c]
call fcn.00422bf0
push dword [ebp - 0x10]
call fcn.0045606b
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x5c], 0x483e84
call fcn.00422bf0
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 5
call fcn.00407b80
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 4
call fcn.00402142
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00401499
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
je 0x40a32f
call fcn.00418905
push dword [ebp - 0x10]
call fcn.0045606b
pop ecx
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
je 0x40a347
call fcn.00418905
push dword [ebp - 0x10]
call fcn.0045606b
pop ecx
push edi
mov ecx, 0x4af930
call fcn.00404997
push ebx
push dword [ebp - 0x60]
push dword [0x4af1a8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp - 0x18]
call fcn.004379d0
cmp eax, dword [esi + 0x50]
pop ecx
mov dword [ebp - 0x18], eax
jne 0x40a0ea
jmp 0x409ed4
push ebx
lea eax, [ebp - 0x60c]
push eax
push 0x4844fc
mov ecx, esi
call fcn.004068b2
jmp 0x40a0ba
push ebx
lea eax, [ebp - 0x60c]
push eax
push 0x4844e8
jmp 0x40a389