Function at 0x10045000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005b202
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov esi, ecx
push str.LoadPatchManager
push esi
call fcn.10048e10
test eax, eax
je 0x10045c5d
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x518], edi
mov word [esp + 0x4f4], 0x5c
mov dword [esp + 0x4f8], edi
mov dword [esp + 0x4fc], edi
add esi, 0x2cc
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], esi
push eax
mov esi, 0x10061414
mov byte [esp + 0x520], 1
call fcn.100170d0
mov eax, dword [eax]
lea esi, [esp + 0x9c]
call fcn.100497f0
mov esi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x100450e1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100450e1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp esi, edi
je 0x100451c1
mov eax, dword [esp + 0x4fc]
cmp eax, edi
je 0x10045194
mov ecx, dword [esp + 0x9c]
shr ecx, 4
and ecx, 1
je 0x1004512f
cmp word [esp + 0xc8], 0x2e
jne 0x1004512f
mov dx, word [esp + 0xca]
cmp dx, di
je 0x10045194
cmp dx, 0x2e
jne 0x1004512f
cmp word [esp + 0xcc], di
je 0x10045194
cmp ecx, edi
je 0x10045194
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.100496c0
mov ebx, eax
lea esi, [esp + 0x24]
mov byte [esp + 0x518], 2
call fcn.10028e10
mov byte [esp + 0x518], 1
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1004518d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004518d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x4fc]
mov ecx, dword [esp + 0x4f8]
cmp ecx, edi
je 0x100451c1
cmp eax, edi
je 0x100451c1
lea edx, [esp + 0x9c]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
mov dword [esp + 0x4fc], eax
jne 0x100450f8
mov eax, dword [esp + 0x4f8]
cmp eax, edi
mov dword [esp + 0x4fc], edi
je 0x100451e6
cmp eax, 0xffffffff
je 0x100451e6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x4f8], edi
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
cmp edi, ebx
jbe 0x100451fc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x40], edi
mov esi, ebx
jbe 0x10045212
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x2c]
cmp edi, esi
je 0x10045c0a
xor eax, eax
push 0x44
push eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x5c]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x54], 0x44
jb 0x1004524e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
lea ecx, [esp + 0x38]
push ecx
mov esi, str..exe
call fcn.100170d0
mov eax, dword [eax]
lea esi, [esp + 0x9c]
call fcn.100497f0
mov esi, eax
mov eax, dword [esp + 0x34]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x1004529b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004529b
mov eax, dword [esp + 0x34]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test esi, esi
je 0x10045b19
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xa0]
push ecx
call fcn.100496c0
mov edx, dword [esp + 0x38]
mov byte [esp + 0x518], 3
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
mov dword [esp + 0x14], eax
jl 0x100452e2
mov esi, eax
lea eax, [esi - 0xc]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10045362
test eax, eax
mov esi, dword [0x1006eb44]
mov dword [esp + 0x1c], esi
jne 0x100452f4
xor edi, edi
jmp 0x100452fd
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp dword [esi - 0xc], 1
lea ebx, [esi - 0xc]
jg 0x1004530b
cmp edi, dword [esi - 4]
jle 0x10045347
add esi, 0xfffffff4
cmp esi, 0x1006eb34
je 0x10045334
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004532a
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x1c], ecx
mov ecx, edi
lea edx, [esp + 0x1c]
call fcn.10011c80
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x10045362
mov edx, dword [esp + 0x14]
lea ebx, [edi + edi]
push ebx
push edx
push esi
call sub.MSVCR80.dll_memcpy
mov dword [esi - 8], edi
add esp, 0xc
mov word [ebx + esi], 0
mov byte [esp + 0x518], 4
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
mov edi, dword [eax - 8]
lea ebx, [eax - 0xc]
lea ecx, [edi + 2]
jg 0x10045382
cmp ecx, dword [eax - 4]
jle 0x100453d1
cmp ecx, edi
lea edx, [esp + 0x10]
cmovl ecx, edi
call fcn.10011c80
test eax, eax
je 0x100453d1
mov edx, dword [esp + 0x10]
lea eax, [edi + edi + 2]
push eax
lea ecx, [ebx + 0xc]
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp ebx, 0x1006eb34
mov dword [eax - 8], edi
je 0x100453cd
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100453cd
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
lea edi, [eax - 0xc]
jle 0x1004543d
add eax, 0xfffffff4
cmp eax, 0x1006eb34
je 0x10045414
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004540a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x10]
call fcn.10011c80
test eax, eax
je 0x1004543d
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x10]
lea eax, [edx + edx + 2]
push eax
add edi, 0xc
push edi
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
push str.__e
mov word [edx + eax*2], 0
call edi
mov ebx, eax
test ebx, ebx
je 0x10045529
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
lea ecx, [eax - 0xc]
mov dword [esp + 0x14], ecx
jg 0x100454b3
mov ecx, dword [eax - 8]
lea edx, [ecx + ebx]
cmp edx, dword [eax - 4]
jg 0x100454b3
lea edx, [ebx + ebx]
push edx
lea eax, [eax + ecx*2]
push str.__e
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
add dword [eax - 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov word [eax + ecx*2], 0
jmp 0x10045529
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 4]
lea ecx, [ebx + edi]
cmp ecx, edi
mov dword [esp + 0x20], eax
jl 0x10045529
cmp ecx, ebx
jl 0x10045529
test ecx, ecx
je 0x10045507
lea edx, [esp + 0x10]
call fcn.10011c80
test eax, eax
je 0x10045529
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add edi, edi
push edi
push eax
push ecx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [ebx + ebx]
push edx
add edi, eax
push str.__e
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x14], 0x1006eb34
je 0x10045529
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10045529
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xa0]
call fcn.10049640
mov byte [esp + 0x518], 5
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 1
mov ebx, dword [eax - 8]
lea edi, [eax - 0xc]
jg 0x10045557
cmp ebx, dword [eax - 4]
jle 0x100455a3
mov ecx, ebx
lea edx, [esp + 0x18]
call fcn.10011c80
test eax, eax
je 0x100455a3
mov ecx, dword [esp + 0x18]
lea edx, [ebx + ebx + 2]
push edx
lea eax, [edi + 0xc]
push eax
push ecx
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp edi, 0x1006eb34
mov dword [edx - 8], ebx
je 0x1004559f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004559f
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 1
lea edi, [eax - 0xc]
jle 0x1004560e
add eax, 0xfffffff4
cmp eax, 0x1006eb34
je 0x100455e5
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100455dc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [0x1006eb44]
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 4]
lea edx, [esp + 0x18]
call fcn.10011c80
test eax, eax
je 0x1004560e
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x18]
lea edx, [ecx + ecx + 2]
push edx
add edi, 0xc
push edi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x18]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x18]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x18]
mov ebx, dword [eax - 8]
test ebx, ebx
mov dword [esp + 0x20], eax
je 0x100456e8
cmp dword [esi - 0xc], 1
lea ecx, [esi - 0xc]
mov dword [esp + 0x14], ecx
jg 0x10045674
mov ecx, dword [esi - 8]
lea edx, [ecx + ebx]
cmp edx, dword [esi - 4]
jg 0x10045674
lea edx, [ebx + ebx]
push edx
push eax
lea eax, [esi + ecx*2]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add dword [esi - 8], ebx
mov ecx, dword [esi - 8]
mov word [esi + ecx*2], 0
jmp 0x100456e8
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 4]
lea ecx, [edi + ebx]
cmp ecx, edi
jl 0x100456e8
cmp ecx, ebx
jl 0x100456e8
test ecx, ecx
je 0x100456bc
lea edx, [esp + 0x1c]
call fcn.10011c80
test eax, eax
je 0x100456e4
add edi, edi
push edi
push esi
mov esi, dword [esp + 0x24]
push esi
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [ebx + ebx]
push eax
push ecx
add edi, esi
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x14], 0x1006eb34
je 0x100456e8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100456e8
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x100456e8
mov esi, dword [esp + 0x1c]
push 0x10060fac
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x100457ac
cmp dword [esi - 0xc], 1
lea eax, [esi - 0xc]
mov dword [esp + 0x14], eax
jg 0x10045738
mov eax, dword [esi - 8]
lea ecx, [eax + ebx]
cmp ecx, dword [esi - 4]
jg 0x10045738
lea edx, [ebx + ebx]
push edx
lea eax, [esi + eax*2]
push 0x10060fac
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add dword [esi - 8], ebx
mov ecx, dword [esi - 8]
mov word [esi + ecx*2], 0
jmp 0x100457ac
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 4]
lea ecx, [edi + ebx]
cmp ecx, edi
jl 0x100457ac
cmp ecx, ebx
jl 0x100457ac
test ecx, ecx
je 0x10045780
lea edx, [esp + 0x1c]
call fcn.10011c80
test eax, eax
je 0x100457a8
add edi, edi
push edi
push esi
mov esi, dword [esp + 0x24]
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea eax, [ebx + ebx]
push eax
push 0x10060fac
add edi, esi
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x14], 0x1006eb34
je 0x100457ac
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100457ac
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x100457ac
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 1
mov ebx, dword [esi - 8]
lea edi, [esi - 0xc]
lea ecx, [ebx + 2]
jg 0x100457c0
cmp ecx, dword [esi - 4]
jle 0x10045807
cmp ecx, ebx
lea edx, [esp + 0x1c]
cmovl ecx, ebx
call fcn.10011c80
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x10045809
lea eax, [ebx + ebx + 2]
push eax
lea ecx, [edi + 0xc]
push ecx
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp edi, 0x1006eb34
mov dword [esi - 8], ebx
je 0x10045807
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10045807
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
cmp dword [esi - 0xc], 1
lea edi, [esi - 0xc]
jle 0x1004586b
add esi, 0xfffffff4
cmp esi, 0x1006eb34
je 0x10045842
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10045838
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [0x1006eb44]
mov dword [esp + 0x1c], edx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x1c]
call fcn.10011c80
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x1004586b
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0xc
push edi
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi - 8], eax
mov word [esi + eax*2], 0
mov ebx, dword [esi - 8]
test ebx, ebx
je 0x10045943
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
lea ecx, [eax - 0xc]
mov dword [esp + 0x14], ecx
jg 0x100458c9
mov ecx, dword [eax - 8]
lea edx, [ecx + ebx]
cmp edx, dword [eax - 4]
jg 0x100458c9
lea edx, [ebx + ebx]
push edx
lea eax, [eax + ecx*2]
push esi
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
add dword [eax - 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov word [eax + ecx*2], 0
jmp 0x10045943
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 4]
lea ecx, [edi + ebx]
cmp ecx, edi
mov dword [esp + 0x20], eax
jl 0x10045947
cmp ecx, ebx
jl 0x10045947
test ecx, ecx
je 0x1004591d
lea edx, [esp + 0x10]
call fcn.10011c80
test eax, eax
je 0x10045943
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add edi, edi
push edi
push eax
push ecx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [ebx + ebx]
push edx
add edi, eax
push esi
push edi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x14], 0x1006eb34
je 0x10045947
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10045943
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
mov edi, dword [eax - 8]
lea ebx, [eax - 0xc]
mov ecx, edi
jg 0x1004595a
cmp ecx, dword [eax - 4]
jle 0x10045970
cmp ecx, edi
lea edx, [esp + 0x10]
cmovl ecx, edi
call fcn.10011c80
test eax, eax
jne 0x10045a2b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10045b5a
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
lea ebx, [eax - 0xc]
jle 0x10045a00
add eax, 0xfffffff4
cmp eax, 0x1006eb34
je 0x100459d7
push ebx
call edi
test eax, eax
jg 0x100459ce
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [0x1006eb44]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x10]
call fcn.10011c80
test eax, eax
je 0x10045a00
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x10]
lea edx, [ecx + ecx + 2]
push edx
add ebx, 0xc
push ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x4f8]
test eax, eax
jne 0x10045a6f
xor ebx, ebx
jmp 0x10045a95
mov edx, dword [esp + 0x10]
lea eax, [edi + edi + 2]
push eax
lea ecx, [ebx + 0xc]
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp ebx, 0x1006eb34
mov dword [eax - 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
je 0x10045a66
push ebx
call edi
test eax, eax
jg 0x10045a66
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
jmp 0x10045976
cmp dword [esp + 0x4fc], 0
jne 0x10045a7d
xor ebx, ebx
jmp 0x10045a95
lea edx, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x4fc], eax
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10045abe
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10045abe
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10045adc
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10045adc
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0x518], 1
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10045b0d
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10045b0d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
jne 0x100452a3
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x4f8]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x4fc], esi
je 0x10045b40
cmp eax, 0xffffffff
je 0x10045b40
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x4f8], esi
mov ebx, dword [esp + 0x2c]
cmp edi, ebx
jb 0x10045b52
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x2c]
add edi, 4
jmp 0x100451fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10045b89
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10045b89
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [esi - 0xc]
cmp eax, 0x1006eb34
je 0x10045ba6
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10045ba6
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10045bcf
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10045bcf
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x4f8]
test eax, eax
mov dword [esp + 0x4fc], 0
je 0x10045bfc
cmp eax, 0xffffffff
je 0x10045bfc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x4f8], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10045c5d
mov ebx, dword [esp + 0x2c]
jmp 0x10045c43
mov eax, dword [esp + 0x4f8]
test eax, eax
mov dword [esp + 0x4fc], 0
je 0x10045c3b
cmp eax, 0xffffffff
je 0x10045c3b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x4f8], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10045c5d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10024910
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.10056d50
mov esp, ebp
pop ebp
ret