Function at 0x40a5d0
Capabilities:
Delete file
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4394f0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44aaf0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xb0]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov eax, dword [0x44f610]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x20], ebp
call fcn.00401f40
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x4c], edi
push edi
push ebp
push str.Count
push str.FilesCount
mov dword [esp + 0xb8], ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebp
push ebp
mov esi, eax
mov eax, dword [ebx + 0x144]
push 0x402
push eax
mov dword [esp + 0x64], esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, ebp
mov dword [esp + 0x3c], ebp
jle 0x40b13c
mov ecx, ebp
jmp 0x40a677
mov ebx, dword [esp + 0xb0]
cmp esi, 0x64
jge 0x40a68c
mov eax, 0x64
cdq
idiv esi
mov dword [ebx + 0x1f4], eax
jmp 0x40a696
mov dword [ebx + 0x1f4], 1
cmp esi, 0x64
jle 0x40a6ba
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea edi, [edx + eax + 1]
mov eax, ecx
cdq
idiv edi
test edx, edx
je 0x40a6c0
cmp esi, 0x64
jge 0x40a7b4
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b183
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push 0
push 0
mov byte [esp + 0xb0], 1
mov ecx, dword [ebx + 0x144]
push 0x408
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea edx, [esp + 0x2c]
push 0x441edc
push edx
call fcn.00405da0
mov eax, dword [esp + 0x34]
mov esi, dword [ebx + 0x190]
lea ebp, [ebx + 0x190]
lea edi, [eax - 0x10]
sub esi, 0x10
add esp, 0xc
cmp edi, esi
je 0x40a780
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40a76d
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x40a76d
push edi
call fcn.00401f40
add esp, 4
mov dword [esp + 0x20], eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40a761
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [ebp], eax
jmp 0x40a779
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.00402080
mov ebx, dword [esp + 0xb0]
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0xc04
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0xa8], 0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40a7b4
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push 0x43f1c0
lea ecx, [esp + 0x3c]
call fcn.00403ce0
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push str.FileName_d
push edx
mov byte [esp + 0xb4], 2
call fcn.00405da0
add esp, 0xc
push 0x43f1c0
lea ecx, [esp + 0x34]
call fcn.00403ce0
mov byte [esp + 0xa8], 3
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40a821
push 0x104
lea ecx, [esp + 0x34]
call fcn.004021f0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
push eax
push 0x104
push edx
push 0x43f1c0
push ecx
push str.FilesName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40b0d1
mov edx, dword [esp + 0xb4]
mov esi, dword [edx]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40a879
cmp eax, dword [esi]
jne 0x40a879
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40a8af
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40b18d
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004226d8
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x2c], edi
mov byte [esp + 0xa8], 4
mov edx, dword [esp + 0x30]
push edx
lea edi, [esp + 0x30]
call fcn.0040f110
mov esi, dword [0x44f618]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
add esp, 4
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40a8fc
cmp eax, dword [esi]
jne 0x40a8fc
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40a932
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40b18d
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004226d8
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x34], edi
mov byte [esp + 0xa8], 5
mov edx, dword [esp + 0x30]
push edx
lea edi, [esp + 0x38]
call fcn.0040f110
add esp, 4
lea ecx, [esp + 0x70]
call fcn.0041dcb7
mov byte [esp + 0xa8], 6
mov ebp, dword [esp + 0x34]
push 0
push ebp
lea ecx, [esp + 0x78]
call fcn.0041dd43
test eax, eax
jne 0x40a998
lea ecx, [esp + 0x70]
mov byte [esp + 0xa8], 5
call fcn.0041dcdb
mov byte [esp + 0xa8], 4
lea eax, [ebp - 0x10]
jmp 0x40b090
push 4
call fcn.004129f6
add esp, 4
test eax, eax
je 0x40a9e5
push 0x441f18
lea ecx, [esp + 0x4c]
mov dword [eax], vtable.CFileProc.0
mov dword [esp + 0x2c], eax
call fcn.00403ce0
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0xac], 7
or dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
lea edx, [esp + 0x38]
call fcn.0040f6d0
test eax, eax
je 0x40a9ed
mov bl, 1
jmp 0x40a9ef
mov dword [esp + 0x28], 0
xor bl, bl
mov dword [esp + 0xa8], 6
test byte [esp + 0x14], 1
je 0x40aa26
mov eax, dword [esp + 0x48]
and dword [esp + 0x14], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aa26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00412a2b
xor ecx, ecx
test bl, bl
je 0x40aac5
test eax, eax
setne cl
test ecx, ecx
je 0x40b183
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa8], 8
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push 0x441f24
push edx
call fcn.00405da0
add esp, 0xc
call fcn.0040fd40
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [esp + 0xac], 9
mov esi, dword [esp + 0x20]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
push esi
call fcn.00401f40
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0xb0], 8
call fcn.0040ff80
mov dword [esp + 0x24], 1
jmp 0x40ab50
test eax, eax
setne cl
test ecx, ecx
je 0x40b183
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa8], 0xa
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push 0x441f38
push edx
call fcn.00405da0
add esp, 0xc
call fcn.0040fd40
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [esp + 0xac], 0xb
mov esi, dword [esp + 0x20]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
push esi
call fcn.00401f40
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0xb0], 0xa
call fcn.0040ff80
mov dword [esp + 0x24], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov byte [esp + 0xb0], 6
add esp, 8
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ab74
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b183
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push str.ESales_binAntennaXSLFormatterV2AXFO.dll
lea ecx, [esp + 0x64]
push 0x44f618
push ecx
mov byte [esp + 0xb4], 0xc
call fcn.004039e0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 0xd
call fcn.00402000
mov byte [esp + 0xa8], 0xc
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40abf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b183
push eax
push ebp
call fcn.00422fef
add esp, 8
test eax, eax
sete al
test al, al
je 0x40ac39
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00401f40
mov ecx, dword [esp + 0x30]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0040b570
push str.ESales_binESalesUpdate.exe
lea edx, [esp + 0x5c]
push 0x44f618
push edx
call fcn.004039e0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 0xe
call fcn.00402000
mov byte [esp + 0xa8], 0xc
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b183
push eax
push ebp
call fcn.00422fef
add esp, 8
test eax, eax
sete al
test al, al
je 0x40acfd
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0040b1a0
test eax, eax
je 0x40acfd
cmp dword [esp + 0x28], 0
je 0x40acfd
push 0x441f18
lea ecx, [esp + 0x44]
call fcn.00403ce0
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xac], 0xf
or dword [esp + 0x18], 2
lea ecx, [esp + 0x30]
lea edx, [esp + 0x38]
call fcn.0040f6d0
test eax, eax
je 0x40acfd
mov bl, 1
jmp 0x40acff
xor bl, bl
mov dword [esp + 0xa8], 0xc
test byte [esp + 0x14], 2
je 0x40ad36
mov eax, dword [esp + 0x40]
and dword [esp + 0x14], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40ad42
mov dword [esp + 0x1c], 1
push str.ESales_bin_
lea ecx, [esp + 0x68]
push 0x44f618
push ecx
call fcn.004039e0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 0x10
call fcn.00402000
mov byte [esp + 0xa8], 0xc
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ad93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x24]
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x40b183
mov ecx, dword [esp + 0x34]
push ebp
push ecx
call fcn.00422fef
add esp, 8
test eax, eax
sete al
test al, al
je 0x40b03c
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b183
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xb0]
add ecx, 0x178
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 0x11
call fcn.00402000
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], 0
jge 0x40ae13
or ecx, 0xffffffff
jmp 0x40ae2e
push 0x44174c
push esi
call fcn.00422ec0
add esp, 8
test eax, eax
jne 0x40ae2a
or ecx, 0xffffffff
jmp 0x40ae2e
sub eax, esi
mov ecx, eax
lea edx, [esp + 0x20]
push edx
mov eax, 8
call fcn.0040e9b0
call fcn.0040fd40
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [esp + 0xac], 0x12
mov edi, dword [esp + 0x24]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x74], esp
mov esi, esp
push edi
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0xb0], 0x11
call fcn.0040ff80
add esp, 8
lea ecx, [esp + 0x88]
call fcn.0041dcb7
push 0x441754
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0xb4], 0x13
call fcn.004039e0
add esp, 0xc
mov byte [esp + 0xa8], 0x14
mov ebx, dword [esp + 0x14]
mov eax, dword [eax]
push 0
or ebx, 4
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x1c], ebx
call fcn.0041dd43
test eax, eax
je 0x40af43
cmp dword [esp + 0x28], 0
je 0x40af43
push 0x441f18
lea ecx, [esp + 0x48]
call fcn.00403ce0
push 0x441754
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x58]
mov dword [esp + 0xb0], 0x15
or ebx, 8
push eax
mov dword [esp + 0x20], ebx
call fcn.004039e0
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0xac], 0x16
or ebx, 0x10
mov ecx, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x18], ebx
call fcn.0040f6d0
test eax, eax
mov byte [esp + 0x1b], 1
jne 0x40af48
mov byte [esp + 0x1b], 0
test bl, 0x10
mov dword [esp + 0xa8], 0x15
je 0x40af7f
mov eax, dword [esp + 0x50]
and ebx, 0xffffffef
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40af7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 8
mov dword [esp + 0xa8], 0x14
je 0x40afb6
mov eax, dword [esp + 0x44]
and ebx, 0xfffffff7
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 4
mov dword [esp + 0xa8], 0x13
je 0x40afed
mov eax, dword [esp + 0x5c]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x40affc
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x88]
mov byte [esp + 0xa8], 0x11
call fcn.0041dcdb
mov byte [esp + 0xa8], 0xc
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b03c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40b04c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0xa8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b070
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xa8], 5
call fcn.0041dcdb
mov byte [esp + 0xa8], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x54]
add ecx, 1
cmp ecx, esi
mov dword [esp + 0x3c], ecx
jl 0x40a670
mov edi, dword [esp + 0x4c]
lea eax, [edi - 0x10]
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b163
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
push 0x80004005
call fcn.00401ed0
call fcn.00401fb0
int3