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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f06b
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.004929f0
mov eax, dword [0x4c448c]
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, ecx
mov ebx, edx
cmp dword [ebx + 0xac], 0
mov dword [ebp - 0x1018], ebx
je 0x43449b
xor eax, eax
push 0xffe
push eax
lea ecx, [ebp - 0x100e]
push ecx
mov word [ebp - 0x1010], ax
call fcn.00479dd0
add esp, 0xc
push 0x7ff
lea edx, [ebp - 0x1010]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x43437d
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434340
sub eax, edx
sar eax, 1
dec eax
test eax, eax
jle 0x434386
mov ecx, 0x5c
lea esp, [esp]
cmp word [ebp + eax*2 - 0x1010], cx
je 0x434371
dec eax
test eax, eax
jg 0x434360
jmp 0x434386
xor ecx, ecx
mov word [ebp + eax*2 - 0x1010], cx
jmp 0x434386
xor edx, edx
mov word [ebp - 0x1010], dx
mov ecx, dword [ebx + 0xa4]
xor edi, edi
cmp dword [ecx], 0xffffffff
je 0x4344f6
mov edx, dword [ebx + 0xac]
xor eax, eax
cmp dword [eax + edx], 0
je 0x4344f6
cmp dword [ecx + eax], esi
je 0x4343c1
inc edi
cmp dword [ecx + edi*4], 0xffffffff
lea eax, [edi*4]
jne 0x43439f
jmp 0x4344f6
mov eax, dword [0x4c41fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c41fc
call edx
add eax, 0x10
mov dword [ebp - 0x1014], eax
xor eax, eax
mov dword [ebp - 4], eax
lea esi, [edi*4]
cmp word [ebp - 0x1010], ax
je 0x434414
mov eax, dword [ebx + 0xac]
mov ecx, dword [esi + eax]
push ecx
lea edx, [ebp - 0x1010]
push edx
push 0x4aade0
lea edi, [ebp - 0x1014]
call fcn.004020e0
add esp, 0xc
jmp 0x43444a
mov ecx, dword [ebx + 0xac]
mov edx, dword [esi + ecx]
cmp edx, eax
je 0x434435
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434426
sub eax, edi
sar eax, 1
push edx
lea edx, [ebp - 0x1014]
push edx
mov ebx, eax
call fcn.00402e20
mov ebx, dword [ebp - 0x1018]
mov edi, dword [ebp - 0x1014]
cmp dword [edi - 4], 1
jle 0x43446c
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x1014]
push ecx
call fcn.00401ff0
mov edi, dword [ebp - 0x1014]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43449f
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43449b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x4344f8
mov ecx, dword [ebx + 0xac]
mov edx, dword [esi + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4344d3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x43448f
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4344f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
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.00474985
mov esp, ebp
pop ebp
ret