Function at 0x424650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a29ac
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x4d61d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, byte [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov byte [ebp - 0x24a], bl
mov dword [ebp - 0x254], 0
call fcn.004693b0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004263e0
add esp, 0x14
call fcn.00421610
lea ecx, [ebp - 0x249]
test eax, eax
je 0x4246ce
call fcn.00422190
jmp 0x4246d3
call fcn.004223e0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4246f9
xor al, al
jmp 0x424aff
call fcn.00406390
mov ecx, eax
test ecx, ecx
je 0x424b1b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x249]
test bl, bl
je 0x42472e
call fcn.00421f00
jmp 0x424733
call fcn.00421d30
lea ecx, [ebp - 0x218]
push ecx
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00405d00
add esp, 0xc
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
push eax
push 0x4a9998
mov word [ebp - 0x230], ax
call fcn.004077e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x230]
push eax
call fcn.00424440
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00404220
lea ecx, [ebp - 0x249]
call fcn.00422690
mov edx, eax
mov dword [ebp - 0x238], 0
mov ecx, edx
mov dword [ebp - 0x234], 0
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4247f1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.004077e0
mov byte [ebp - 4], 3
xor eax, eax
mov esi, dword [ebp - 0x258]
mov ecx, esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424850
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.004077e0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x230]
push 0
push 0x1388
push 1
push 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430460
add esp, 0x18
test al, al
sete bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00404220
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00404220
test bl, bl
je 0x4248be
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00438dc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
mov ebx, 0xffffffff
sub eax, 1
jne 0x424ae1
push 0x6b
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
push 0x4ac3b0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.004076f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
push 3
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
push 0x4a9c6c
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.004076f0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x230]
push 0x100
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x300]
call fcn.00409020
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 7
lea edi, [esi - 0x10]
mov ecx, dword [edi]
lea eax, [ebp - 0x250]
mov dword [ebp - 0x268], eax
mov edx, dword [ecx]
call dword [edx + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x4249bb
cmp ecx, dword [edi]
jne 0x4249bb
lock inc dword [eax]
jmp 0x4249f8
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x25c], edx
test edx, edx
je 0x424b25
mov eax, dword [edi + 4]
lea ecx, [edi + 0x10]
mov dword [edx + 4], eax
add edx, 0x10
mov eax, dword [edi + 4]
inc eax
add eax, eax
push eax
push ecx
push eax
push edx
call fcn.00408870
mov edi, dword [ebp - 0x25c]
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x250]
movzx eax, byte [ebp - 0x24a]
push eax
push str.CBandClient::RegisterBand_bRegister:_d_Param:_s
lea eax, [ebp - 0x264]
push 2
push eax
call fcn.00438c80
add esp, 0x14
mov dword [ebp - 0x254], 1
mov edi, eax
mov byte [ebp - 4], 9
mov ecx, ebx
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x424a56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, 0x4a9a78
mov edi, dword [ebp - 0x260]
test eax, eax
cmovne ecx, eax
push ecx
push edi
call fcn.00402c30
add esp, 8
call fcn.00438dc0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, 1
mov dword [ebp - 0x254], eax
and eax, 0xfffffffe
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424ab4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x300]
call fcn.00404eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.004041a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.004041a0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x424afd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a373
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405790
call fcn.00406f10
int3