Function at 0x40b8e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b809
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x46b0a4]
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 esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
call fcn.0040b200
mov ecx, eax
test ecx, ecx
je 0x40c2db
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x78], edi
mov eax, 7
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [ebp - 0x28], cx
or ebx, 0xffffffff
mov byte [ebp - 4], 2
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
cmp dword [ebp + 0xc], ecx
jle 0x40c21b
nop dword [eax]
mov esi, dword [esi + ecx*4]
call fcn.0040b200
test eax, eax
je 0x40c2db
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x80], eax
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.0040aa70
test al, al
jne 0x40b9d9
test esi, esi
jne 0x40b9b6
xor ecx, ecx
jmp 0x40b9cf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b9c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x80]
call fcn.0040c780
mov esi, dword [ebp - 0x80]
mov byte [ebp - 4], 4
cmp dword [esi - 0xc], 0
jl 0x40c010
push 0x44ef34
push esi
call fcn.0042fb51
add esp, 8
test eax, eax
je 0x40ba02
sub eax, esi
sar eax, 1
je 0x40ba2c
cmp dword [esi - 0xc], 0
jl 0x40c010
push 0x44ef3c
push esi
call fcn.0042fb51
add esp, 8
test eax, eax
je 0x40bcbd
sub eax, esi
sar eax, 1
jne 0x40bcbd
mov ecx, dword [esi - 0xc]
xor ebx, ebx
mov dword [ebp - 0x84], ecx
lea eax, [ecx - 3]
test eax, eax
cmovns ebx, eax
lea eax, [esi - 0x10]
mov dword [ebp - 0x88], eax
cmp ebx, ecx
jl 0x40ba66
push eax
call fcn.0040abb0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], esi
jmp 0x40baef
mov ecx, dword [eax]
test ecx, ecx
je 0x40ba77
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
test edx, edx
jne 0x40ba85
call fcn.0040b200
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, eax
mov ecx, dword [ebp - 0x84]
sub ecx, ebx
lea eax, [esi + ecx*2]
mov dword [ebp - 0x74], eax
test edx, edx
je 0x40c2db
test eax, eax
jne 0x40baa7
test ebx, ebx
jne 0x40c2e5
mov eax, dword [edx]
mov ecx, edx
push 2
push ebx
call dword [eax]
test eax, eax
je 0x40c2ef
lea esi, [eax + 0x10]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x7c], esi
test ebx, ebx
js 0x40c2e5
cmp ebx, dword [esi - 8]
jg 0x40c2e5
lea eax, [ebx + ebx]
mov dword [esi - 0xc], ebx
push eax
push dword [ebp - 0x74]
xor ecx, ecx
push eax
push esi
mov word [eax + esi], cx
call fcn.00415660
add esp, 0x10
movzx eax, word [esi]
xor ebx, ebx
mov byte [ebp - 4], 5
test ax, ax
je 0x40bb72
mov edi, dword [ebp - 0x84]
mov ecx, eax
push ecx
push 0x44ef44
call fcn.0042fa8a
add esp, 8
test eax, eax
je 0x40bb22
test ebx, ebx
mov eax, edi
cmovne eax, ebx
mov ebx, eax
jmp 0x40bb24
xor ebx, ebx
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x40bb05
mov edi, dword [ebp - 0x78]
test ebx, ebx
je 0x40bb72
sub ebx, esi
sar ebx, 1
js 0x40c2e5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40bb60
push ebx
lea ecx, [ebp - 0x7c]
call fcn.0040c3d0
mov esi, dword [ebp - 0x7c]
cmp ebx, dword [esi - 8]
jg 0x40c2e5
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
movzx eax, word [esi]
mov ebx, esi
test ax, ax
je 0x40bc5f
mov ecx, eax
push ecx
push 0x44ef44
call fcn.0042fa8a
add esp, 8
test eax, eax
je 0x40bba2
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x40bb82
cmp ebx, esi
je 0x40bc5f
mov edx, dword [esi - 0xc]
sub ebx, esi
sar ebx, 1
test edx, edx
js 0x40c2e5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40bbd6
push edx
lea ecx, [ebp - 0x7c]
call fcn.0040c3d0
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi - 0xc]
lea edx, [esi + ebx*2]
sub eax, ebx
mov dword [ebp - 0x74], eax
lea ecx, [eax*2 + 2]
test ecx, ecx
je 0x40bc37
test edx, edx
jne 0x40bc07
call fcn.004341d2
mov dword [eax], 0x16
call fcn.004340f9
mov eax, 0x16
jmp 0x40bc39
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
cmp eax, ecx
jae 0x40bc2c
call fcn.004341d2
mov dword [eax], 0x22
call fcn.004340f9
mov eax, 0x22
jmp 0x40bc39
push ecx
push edx
push esi
call fcn.004308a0
add esp, 0xc
xor eax, eax
push eax
call fcn.0040a9b0
mov eax, dword [ebp - 0x74]
add esp, 4
test eax, eax
js 0x40c2e5
cmp eax, dword [esi - 8]
jg 0x40c2e5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bc64
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.0040e210
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bc9b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x88]
mov eax, ebx
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c02b
mov ecx, dword [edx]
push edx
jmp 0x40c026
cmp dword [esi - 0xc], 0
jl 0x40c010
push 0x44ef48
push esi
call fcn.0042fb51
add esp, 8
test eax, eax
je 0x40bcdf
sub eax, esi
sar eax, 1
je 0x40bd09
cmp dword [esi - 0xc], 0
jl 0x40c010
push 0x44ef50
push esi
call fcn.0042fb51
add esp, 8
test eax, eax
je 0x40bf14
sub eax, esi
sar eax, 1
jne 0x40bf14
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x80]
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040c6b0
push 0x44ef44
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040c8c0
add edi, 0xfffffff0
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40bd84
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40bd75
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40bd75
push edx
call fcn.0040abb0
add esp, 4
mov dword [ebp - 0x74], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40bd6d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x74]
add eax, 0x10
mov dword [ebp - 0x78], eax
jmp 0x40bd81
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x78]
call fcn.0040c780
or ebx, 0xffffffff
mov edx, dword [ebp - 0x94]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bda5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040c6b0
mov eax, dword [eax]
mov ecx, 0x44e77c
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bde6
test dx, dx
je 0x40bde2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bde6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bdc0
xor edi, edi
jmp 0x40bdeb
sbb edi, edi
or edi, 1
mov edx, dword [ebp - 0x98]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40be0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x40be1d
push 0x44e77c
lea ecx, [ebp - 0x78]
call fcn.0040a8d0
push 0x13
push str.LibReportParam2.dll
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.0040e120
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040d950
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 9
jb 0x40be5e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040a8d0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x40bea5
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c2f4
push edx
push ecx
call fcn.00418c52
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x40bef1
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bee7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c2f4
push edx
push ecx
call fcn.00418c52
add esp, 8
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bf0c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x78]
jmp 0x40c02b
cmp dword [esi - 0xc], 0
jl 0x40c010
push 0x44ef58
push esi
call fcn.0042fb51
add esp, 8
test eax, eax
je 0x40bf36
sub eax, esi
sar eax, 1
je 0x40bf58
cmp dword [esi - 0xc], 0
jl 0x40c010
push 0x44ef60
push esi
call fcn.0042fb51
add esp, 8
test eax, eax
je 0x40bfc4
sub eax, esi
sar eax, 1
jne 0x40bfc4
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x80]
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040c6b0
push 0x44ef44
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040c8c0
mov edx, dword [eax]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf85
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e210
mov edx, dword [ebp - 0x9c]
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c010
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40c010
cmp dword [esi - 0xc], 0
jl 0x40c010
push 0x44ef68
push esi
call fcn.0042fb51
add esp, 8
test eax, eax
je 0x40bfe5
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40c006
cmp dword [esi - 0xc], 0
jl 0x40c010
push 0x44ef70
push esi
call fcn.0042fb51
add esp, 8
test eax, eax
je 0x40c010
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40c010
mov dword [ebp - 0x90], 1
mov eax, ebx
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c02b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x8c]
inc ecx
mov dword [ebp - 0x8c], ecx
cmp ecx, dword [ebp + 0xc]
jge 0x40c048
mov esi, dword [ebp - 0xa0]
jmp 0x40b980
cmp dword [ebp - 0x18], 0
je 0x40c218
cmp dword [ebp - 0x48], 0
je 0x40c218
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40c194
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00415380
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40c090
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2c]
mov ebx, eax
cmp edx, 0x10
jb 0x40c0ce
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c0c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c2f4
push edx
push ecx
call fcn.00418c52
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test ebx, ebx
je 0x40c11a
push edi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x90], 0
je 0x40c20e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
mov esi, 1
jmp 0x40c21d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00415380
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00415380
add esp, 0x10
cmp dword [esi + 0x14], 0x10
mov byte [ebp - 4], 0xc
jb 0x40c150
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x40c158
mov eax, dword [eax]
push esi
push eax
push str.get_process_address__s::_s___failed_
push str.LoadDll
push 0xb5
call fcn.0040b540
push eax
call fcn.0040ca50
add esp, 0x18
lea ecx, [ebp - 0x40]
call fcn.00409620
lea ecx, [ebp - 0x70]
call fcn.00409620
mov eax, dword [ebp - 0x14]
mov esi, 1
jmp 0x40c21d
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00415380
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x40c1b8
mov eax, dword [eax]
push eax
push str.load___s__library_failed_
push str.LoadDll
push 0xbb
call fcn.0040b540
push eax
call fcn.0040ca50
mov edx, dword [ebp - 0x2c]
add esp, 0x14
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x40c20e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c204
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c2f9
push edx
push ecx
call fcn.00418c52
add esp, 8
mov eax, dword [ebp - 0x14]
mov esi, 1
jmp 0x40c21d
mov eax, dword [ebp - 0x14]
xor esi, esi
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x40c258
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c24e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c2fe
push edx
push ecx
call fcn.00418c52
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
add edi, 0xfffffff0
mov word [ebp - 0x28], ax
or ecx, 0xffffffff
mov byte [ebp - 4], al
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40c287
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40c2bd
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c303
push edx
push ecx
call fcn.00418c52
add esp, 8
mov eax, esi
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.00419373
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040aa50
push 0x80070057
call fcn.0040aa50
call fcn.0040c8b0
call fcn.00434109
call fcn.00434109
call fcn.00434109
call fcn.00434109
int3