Function at 0x10043970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], ebx
call fcn.100e9430
test eax, eax
jne 0x10043993
xor ebx, ebx
jmp 0x10043d36
cmp dword [ebp + 0x1c], 8
push esi
push edi
lea esi, [ebp + 8]
jb 0x100439a1
mov esi, dword [ebp + 8]
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x10043d73
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0xc]
push esi
mov dword [ebp - 0xc], eax
call fcn.10004a70
test al, al
jne 0x100439ee
test esi, esi
jne 0x100439d0
xor ecx, ecx
jmp 0x100439e4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100439d5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.10004050
or edi, 0xffffffff
cmp dword [ebp - 0xc], 0
je 0x10043d1a
mov eax, dword [0x10255438]
test eax, eax
jne 0x10043a0e
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x10043a46
mov eax, dword [0x10255438]
test eax, eax
jne 0x10043a2a
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x10043a38
mov eax, dword [eax + 0x3c]
jmp 0x10043a3a
xor eax, eax
test eax, eax
je 0x10043a46
mov esi, dword [ebp - 0xc]
push esi
call eax
jmp 0x10043a50
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10043d1a
test al, 0x10
jne 0x10043d1a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x10043d1a
push str..lnk
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10043d1a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004700
lea eax, [ebp - 0x1c]
push eax
push 0x10219e0c
push 2
call fcn.100e67d0
add esp, 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100233d0
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10023360
mov edx, dword [ebp - 0x14]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10043adb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.10005080
lea eax, [ebp - 0x1c]
push eax
push 0x10219e0c
push 1
call fcn.100e67d0
add esp, 4
push eax
lea eax, [ebp - 4]
push eax
call fcn.100233d0
add esp, 0xc
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10023360
mov edx, dword [ebp - 4]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10043b2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
call fcn.10005080
mov edi, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10043be2
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 2
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10043bbd
test edi, edi
je 0x10043d73
mov eax, dword [esi]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10043b9a
test dx, dx
je 0x10043b96
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10043b9a
add eax, 4
add ecx, 4
test dx, dx
jne 0x10043b74
xor eax, eax
jmp 0x10043b9f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10043bad
mov ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10043bb0
mov ecx, dword [ebp - 4]
inc ebx
add esi, 4
cmp ebx, dword [ebp - 0x20]
jb 0x10043b68
test ecx, ecx
jne 0x10043bdf
mov ecx, dword [ebp - 0x24]
push 1
push edi
call fcn.10137e20
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.10054940
mov dword [ebp - 0x14], 1
jmp 0x10043be2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10043cb9
mov eax, dword [ebp - 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [eax + 4]
sub eax, ebx
sar eax, 2
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10043c71
test esi, esi
je 0x10043d73
mov eax, dword [ebx]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10043c48
test dx, dx
je 0x10043c44
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10043c48
add eax, 4
add ecx, 4
test dx, dx
jne 0x10043c22
xor eax, eax
jmp 0x10043c4d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10043c5b
mov ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10043c5e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add ebx, 4
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x20]
jb 0x10043c16
test ecx, ecx
jne 0x10043cb9
mov ecx, dword [ebp - 0x24]
push 1
push esi
call fcn.10137e20
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
cmp ebx, dword [eax + 8]
je 0x10043ca6
lea eax, [esi - 0x10]
push eax
call fcn.10004ba0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov eax, dword [ebp - 8]
add dword [eax + 4], 4
mov eax, 1
jmp 0x10043cbb
lea ecx, [ebp - 0x18]
push ecx
push ebx
mov ecx, eax
call fcn.10006410
mov eax, 1
jmp 0x10043cbb
xor eax, eax
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jne 0x10043cc6
test eax, eax
je 0x10043ccb
mov ebx, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10043ce3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10043cfb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10043d1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10043d1c
xor ebx, ebx
mov edx, dword [ebp - 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
pop edi
pop esi
jg 0x10043d36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10043d6c
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10043d62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10043d7d
push edx
push ecx
call fcn.102134ff
add esp, 8
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
call fcn.10200ab0
int3