Function at 0x406b20
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4610aa
mov eax, dword fs:[0]
push eax
mov eax, 0x100d0
call fcn.004474b0
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x100c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0x100e4]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
lea eax, [esi + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x100f0], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
call fcn.00407b10
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
lea eax, [esp + 0x100f4]
push eax
mov edi, str.language.xml
lea esi, [esp + 0x5c]
call fcn.00402620
add esp, 4
mov byte [esp + 0x100ec], 1
mov eax, dword [esp + 0x5c]
mov esi, 0x10
cmp dword [esp + 0x70], esi
jae 0x406bce
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406c1d
cmp dword [esp + 0x70], esi
jb 0x406bec
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00420ede
add esp, 4
cmp dword [esp + 0x1010c], esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
jb 0x406c16
mov edx, dword [esp + 0x100f8]
push edx
call fcn.00420ede
add esp, 4
xor eax, eax
jmp 0x4071e2
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x406c2b
lea eax, [esp + 0x5c]
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.00422227
lea ecx, [esp + 0x34]
mov byte [esp + 0x100ec], 2
call fcn.00421a57
cmp edx, ebx
ja 0x406ca6
jb 0x406c51
cmp eax, ebx
ja 0x406ca6
lea ecx, [esp + 0x34]
mov byte [esp + 0x100ec], 1
call fcn.00421cf8
cmp dword [esp + 0x70], esi
jb 0x406c75
mov eax, dword [esp + 0x5c]
push eax
call fcn.00420ede
add esp, 4
cmp dword [esp + 0x1010c], esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
jb 0x406c16
mov ecx, dword [esp + 0x100f8]
push ecx
call fcn.00420ede
add esp, 4
xor eax, eax
jmp 0x4071e2
lea ecx, [esp + 0x34]
call fcn.00421a57
mov esi, eax
add esi, 1
adc edx, ebx
push esi
mov dword [esp + 0x4c], edx
call fcn.00420ee3
add esp, 4
push esi
mov ebp, eax
push ebx
push ebp
mov dword [esp + 0x50], ebp
call fcn.00445a00
add esp, 0xc
push esi
push ebp
lea ecx, [esp + 0x3c]
call fcn.00421872
lea edx, [esp + 0xd0]
mov eax, edx
neg eax
and eax, 3
lea eax, [esp + eax + 0xd0]
lea ecx, [esp + 0x100d0]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x100d0], ebx
mov dword [esp + 0x100d4], ebx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
push ebp
lea edi, [esp + 0x98]
mov byte [esp + 0x100f0], 3
call fcn.00409400
push str.Language
mov edx, edi
push edx
call fcn.00407530
cmp eax, ebx
je 0x40716d
push str.Section
push eax
call fcn.00407530
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x4070f6
jmp 0x406d90
push 0x46a018
push esi
call fcn.00407610
cmp eax, ebx
je 0x4070dd
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x406db6
mov dword [esp + 0x1c], 0x481ec8
call fcn.00420ad0
mov dword [esp + 0x24], eax
mov byte [eax + 0x31], 1
mov eax, dword [esp + 0x24]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x24]
mov dword [eax], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 8], eax
mov dword [esp + 0x28], ebx
push str.Item
push esi
mov byte [esp + 0x100f4], 4
call fcn.00407530
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x407033
lea ebx, [ebx]
mov eax, 0x46a024
add eax, 1
cmp byte [eax], 0
jne 0x406e05
sub eax, 0x46a024
mov ebp, eax
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x20]
mov edi, ebx
test edi, edi
je 0x406e64
mov eax, dword [edi]
test eax, eax
je 0x406e2c
mov edx, dword [edi + 8]
jmp 0x406e2e
xor edx, edx
test eax, eax
jne 0x406e37
mov eax, 0x481ec8
cmp edx, ebp
mov ecx, 0x46a024
jne 0x406e5d
lea esi, [edx + eax]
cmp eax, esi
jae 0x406e57
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406e5d
add eax, 1
add ecx, 1
cmp eax, esi
jb 0x406e47
mov dword [esp + 0x2c], edi
jmp 0x406e6c
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x406e21
mov dword [esp + 0x2c], 0
mov eax, str.value
add eax, 1
cmp byte [eax], 0
jne 0x406e71
sub eax, str.value
mov ebp, ebx
test ebp, ebp
mov edi, eax
je 0x406fc0
lea ebx, [ebx]
mov eax, dword [ebp]
test eax, eax
je 0x406e9c
mov edx, dword [ebp + 8]
jmp 0x406e9e
xor edx, edx
test eax, eax
jne 0x406ea7
mov eax, 0x481ec8
cmp edx, edi
mov ecx, str.value
jne 0x406feb
lea esi, [edx + eax]
cmp eax, esi
jae 0x406ed4
jmp 0x406ec0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406feb
add eax, 1
add ecx, 1
cmp eax, esi
jb 0x406ec0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x406fc0
mov edi, dword [eax + 4]
test edi, edi
jne 0x406eec
mov edi, 0x481ec8
mov esi, dword [ebp + 4]
test esi, esi
jne 0x406ef8
mov esi, 0x481ec8
test edi, edi
je 0x406fc0
test esi, esi
je 0x406fc0
push 0
push 0x469d1e
lea ecx, [esp + 0x80]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], 0
mov byte [esp + 0x84], 0
call fcn.004017f0
push edi
mov byte [esp + 0x100f0], 5
call fcn.004437bc
mov dword [esp + 0x78], eax
mov eax, esi
add esp, 4
lea ecx, [eax + 1]
jmp 0x406f60
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x406f60
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x80]
call fcn.004017f0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x24]
call fcn.00407680
mov ecx, dword [esp + 0x74]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x80]
mov dword [eax], ecx
push edx
lea ecx, [eax + 4]
call fcn.004015b0
mov byte [esp + 0x100ec], 4
cmp dword [esp + 0x90], 0x10
jb 0x406fc0
mov eax, dword [esp + 0x7c]
push eax
call fcn.00420ede
add esp, 4
mov eax, str.Item
add eax, 1
cmp byte [eax], 0
jne 0x406fc5
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x2c]
sub eax, str.Item
test edi, edi
mov ebp, eax
je 0x407033
nop
mov eax, dword [edi]
test eax, eax
je 0x406ff8
mov edx, dword [edi + 8]
jmp 0x406ffa
mov ebp, dword [ebp + 0x18]
test ebp, ebp
jne 0x406e90
jmp 0x406fc0
xor edx, edx
test eax, eax
jne 0x407003
mov eax, 0x481ec8
cmp edx, ebp
mov ecx, str.Item
jne 0x40702c
lea esi, [edx + eax]
cmp eax, esi
jae 0x407023
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40702c
add eax, 1
add ecx, 1
cmp eax, esi
jb 0x407013
mov dword [esp + 0x14], edi
jmp 0x406e00
mov edi, dword [edi + 0x2c]
test edi, edi
jne 0x406fe0
mov esi, dword [esp + 0x1c]
mov eax, esi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407057
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.004017f0
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x100f0], 6
call fcn.00407380
mov edi, eax
lea ecx, [esp + 0x20]
cmp edi, ecx
je 0x4070ab
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push edi
push ecx
push edi
lea edx, [esp + 0x60]
push edx
call fcn.00407e20
lea ebx, [esp + 0x20]
mov eax, edi
call fcn.00407ef0
cmp dword [esp + 0x8c], 0x10
jb 0x4070c2
mov eax, dword [esp + 0x78]
push eax
call fcn.00420ede
add esp, 4
lea eax, [esp + 0x20]
mov byte [esp + 0x100ec], 3
call fcn.00407f60
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
xor ebx, ebx
push str.Section
push esi
call fcn.004075a0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], eax
jne 0x406d90
push ebp
call fcn.00420ede
add esp, 4
lea esi, [esp + 0xc4]
mov byte [esp + 0x100ec], 2
call fcn.00407c00
lea ecx, [esp + 0x34]
mov byte [esp + 0x100ec], 1
call fcn.00421cf8
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x40713c
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00420ede
add esp, 4
cmp dword [esp + 0x1010c], esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
jb 0x407166
mov edx, dword [esp + 0x100f8]
push edx
call fcn.00420ede
add esp, 4
mov eax, 1
jmp 0x4071e2
push ebp
call fcn.00420ede
add esp, 4
lea esi, [esp + 0xc4]
mov byte [esp + 0x100ec], 2
call fcn.00407c00
lea ecx, [esp + 0x34]
mov byte [esp + 0x100ec], 1
call fcn.00421cf8
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x4071b3
mov eax, dword [esp + 0x5c]
push eax
call fcn.00420ede
add esp, 4
cmp dword [esp + 0x1010c], esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
jb 0x4071dd
mov ecx, dword [esp + 0x100f8]
push ecx
call fcn.00420ede
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x100e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c8]
xor ecx, esp
call fcn.00441b4d
add esp, 0x100dc
ret 0x1c