Function at 0x41074c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov eax, 0x530278
call fcn.00503e60
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x438]
call fcn.004c37e8
test eax, eax
jne 0x41078b
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
mov eax, edx
jmp 0x4109da
mov esi, 0x52b93e
lea edi, [ebp - 0x150]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x150]
push eax
call fcn.00420aa8
pop ecx
mov word [ebp - 0x2c], 8
lea edx, [ebp - 0x150]
lea eax, [ebp - 4]
call fcn.0050efe0
inc dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x430]
call fcn.00494534
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0050f140
mov word [ebp - 0x2c], 0x14
mov edx, str..dic.dic..
lea eax, [ebp - 8]
call fcn.0050efe0
mov edx, eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x430]
add eax, 0x60
call fcn.0050f170
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f140
mov word [ebp - 0x2c], 0x20
mov edx, 0x52d55f
lea eax, [ebp - 0xc]
call fcn.0050efe0
mov edx, eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x430]
add eax, 0x78
call fcn.0050f170
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0050f140
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x430]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4109bd
mov word [ebp - 0x2c], 0x2c
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x430]
call fcn.0049449c
cmp dword [ebp - 0x10], 0
je 0x410893
mov edx, dword [ebp - 0x10]
jmp 0x410898
mov edx, 0x52d560
push edx
lea eax, [ebp - 0x150]
push eax
call fcn.00503a5c
add esp, 8
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0050f140
mov ecx, dword [sym.xscan_gui.exe__MainForm]
mov eax, dword [ecx]
add eax, 0x45c
push eax
call fcn.00503a8c
pop ecx
push eax
lea edx, [ebp - 0x150]
push edx
mov ecx, dword [sym.xscan_gui.exe__MainForm]
mov eax, dword [ecx]
add eax, 0x45c
push eax
call fcn.00503cdc
add esp, 0xc
test eax, eax
jne 0x410958
mov word [ebp - 0x2c], 0x38
xor edx, edx
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x14]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x430]
call fcn.0049449c
cmp dword [ebp - 0x14], 0
je 0x410918
mov ebx, dword [ebp - 0x14]
jmp 0x41091d
mov ebx, 0x52d565
mov eax, dword [sym.xscan_gui.exe__MainForm]
mov edx, dword [eax]
add edx, 0x45c
push edx
call fcn.00503a8c
pop ecx
add ebx, eax
push ebx
push 0x52d561
lea ecx, [ebp - 0x150]
push ecx
call fcn.00506898
add esp, 0xc
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0050f140
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x438]
call fcn.004c37e8
add eax, 8
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0x44]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x438]
call fcn.004c37e8
add eax, 8
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x2c], 0x44
lea edx, [ebp - 0x150]
lea eax, [ebp - 0x18]
call fcn.0050efe0
inc dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0050f140
mov ecx, dword [sym.xscan_gui.exe__MainForm]
mov eax, dword [ecx]
add eax, 0x45c
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret