Function at 0x4090e4
Capabilities:
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff860
push ebx
push esi
push edi
mov byte [ebp - 0x269], cl
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x264], eax
mov eax, 0x52ea60
call fcn.00503e60
mov word [ebp - 0x250], 0x14
mov edx, 0x52c852
lea eax, [ebp - 4]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov word [ebp - 0x250], 8
mov esi, 0x5274bc
lea edi, [ebp - 0x69c]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov esi, 0x5278bc
lea edi, [ebp - 0x7a0]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x270], eax
xor edx, edx
mov dword [ebp - 0x274], edx
xor ecx, ecx
mov dword [ebp - 0x278], ecx
mov word [ebp - 0x250], 0x20
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x268]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov eax, dword [eax]
call fcn.004ebf64
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x244]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f140
pop ecx
test cl, cl
je 0x4091d7
push 1
push dword [ebp - 0x268]
push 0x52c854
lea eax, [ebp - 0x7a0]
push eax
call fcn.00420bd0
add esp, 8
push eax
call sub.KERNEL32.DLL_CopyFileA
mov word [ebp - 0x250], 0x2c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x268]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4e79bc]
call fcn.0040b838
mov dword [ebp - 0x27c], eax
dec dword [ebp - 0x244]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0050f140
mov word [ebp - 0x250], 8
cmp byte [ebp - 0x269], 0
je 0x409812
mov word [ebp - 0x250], 0x38
mov edx, 0x52c870
lea eax, [ebp - 0x18]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x1c]
push eax
inc dword [ebp - 0x244]
mov edx, 0x52c867
lea eax, [ebp - 0x14]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov edx, 0x52c860
lea eax, [ebp - 0x10]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [ebp - 0x27c]
pop ecx
mov ebx, dword [eax]
call dword [ebx]
lea edx, [ebp - 0x1c]
mov edx, dword [edx]
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3f0]
call fcn.0049aef4
dec dword [ebp - 0x244]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0050f140
push 0
mov edx, 0x52c88b
lea eax, [ebp - 0x24]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov word [ebp - 0x250], 0x44
mov edx, 0x52c884
lea eax, [ebp - 0x20]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [ebp - 0x27c]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, eax
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3f4]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
dec dword [ebp - 0x244]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0050f140
mov ecx, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [ecx + 0x3f4]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x4094c7
mov word [ebp - 0x250], 0x50
mov edx, 0x52c8b5
lea eax, [ebp - 0x30]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
xor ecx, ecx
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x34]
push eax
inc dword [ebp - 0x244]
mov edx, 0x52c8a6
lea eax, [ebp - 0x2c]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov edx, 0x52c89f
lea eax, [ebp - 0x28]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [ebp - 0x27c]
pop ecx
mov ebx, dword [eax]
call dword [ebx]
lea edx, [ebp - 0x34]
lea eax, [ebp - 4]
call fcn.0050f170
dec dword [ebp - 0x244]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0050f140
mov eax, dword [ebp - 4]
call fcn.004ebf64
test al, al
je 0x40948d
mov edx, dword [sym.xscan_gui.exe__ConfigForm]
mov ecx, dword [edx + 0x3f8]
add ecx, 0x220
mov dword [ebp - 0x280], ecx
mov eax, dword [ebp - 0x280]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea edx, [ebp - 4]
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
add eax, 0x458
call fcn.0050f170
jmp 0x4094c7
mov ecx, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [ecx + 0x3f8]
add eax, 0x220
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0x44]
mov ecx, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [ecx + 0x3f4]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov word [ebp - 0x250], 0x5c
mov edx, 0x52c8d5
lea eax, [ebp - 0x40]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
xor ecx, ecx
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x44]
push eax
inc dword [ebp - 0x244]
mov edx, 0x52c8c9
lea eax, [ebp - 0x3c]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov edx, 0x52c8c2
lea eax, [ebp - 0x38]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [ebp - 0x27c]
pop ecx
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x44], 0
je 0x409534
mov eax, dword [ebp - 0x44]
jmp 0x409539
mov eax, 0x52c8d6
push eax
lea edx, [ebp - 0x69c]
push edx
call fcn.00503a5c
add esp, 8
dec dword [ebp - 0x244]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0050f140
push 0x5c
lea ecx, [ebp - 0x69c]
push ecx
call fcn.00503b91
add esp, 8
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jne 0x4095c3
lea eax, [ebp - 0x69c]
mov dword [ebp - 0x270], eax
jmp 0x4095c9
inc dword [ebp - 0x270]
mov word [ebp - 0x250], 0x68
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x270]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3d0]
call fcn.0049aef4
dec dword [ebp - 0x244]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0050f140
mov word [ebp - 0x250], 0x74
mov edx, 0x52c8ea
lea eax, [ebp - 0x54]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
lea eax, [ebp - 0x58]
push eax
inc dword [ebp - 0x244]
mov edx, 0x52c8de
lea eax, [ebp - 0x50]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov edx, 0x52c8d7
lea eax, [ebp - 0x4c]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [ebp - 0x27c]
pop ecx
mov ebx, dword [eax]
call dword [ebx]
lea edx, [ebp - 0x58]
mov edx, dword [edx]
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3d8]
call fcn.0049aef4
dec dword [ebp - 0x244]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0050f140
mov word [ebp - 0x250], 0x80
mov edx, 0x52c907
lea eax, [ebp - 0x64]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
xor ecx, ecx
mov dword [ebp - 0x68], ecx
lea eax, [ebp - 0x68]
push eax
inc dword [ebp - 0x244]
mov edx, 0x52c8f6
lea eax, [ebp - 0x60]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov edx, 0x52c8ef
lea eax, [ebp - 0x5c]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [ebp - 0x27c]
pop ecx
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x68], 0
je 0x40973b
mov eax, dword [ebp - 0x68]
jmp 0x409740
mov eax, 0x52c908
push eax
lea edx, [ebp - 0x69c]
push edx
call fcn.00503a5c
add esp, 8
dec dword [ebp - 0x244]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0050f140
push 0x5c
lea ecx, [ebp - 0x69c]
push ecx
call fcn.00503b91
add esp, 8
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jne 0x4097ca
lea eax, [ebp - 0x69c]
mov dword [ebp - 0x270], eax
jmp 0x4097d0
inc dword [ebp - 0x270]
mov word [ebp - 0x250], 0x8c
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x270]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3e8]
call fcn.0049aef4
dec dword [ebp - 0x244]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0050f140
push 1
mov edx, 0x52c910
lea eax, [ebp - 0x74]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov word [ebp - 0x250], 0x98
mov edx, 0x52c909
lea eax, [ebp - 0x70]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [ebp - 0x27c]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, eax
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3dc]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
dec dword [ebp - 0x244]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0050f140
push 1
mov edx, 0x52c928
lea eax, [ebp - 0x7c]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov word [ebp - 0x250], 0xa4
mov edx, 0x52c921
lea eax, [ebp - 0x78]
call fcn.0050efe0
inc dword [ebp - 0x244]
mov edx, dword [eax]
mov eax, dword [ebp - 0x27c]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, eax
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3e0]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
dec dword [ebp - 0x244]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0050f140
dec dword [ebp - 0x244]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0050f140
mov ecx, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [ecx + 0x3e0]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov edx, eax
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3e8]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [edx + 0x3f4]
mov edx, dword [eax]
call dword [edx + 0xc4]
xor edx, edx
mov dl, al
cmp edx, 1
sbb edx, edx
neg edx
mov eax, dword [sym.xscan_gui.exe__ConfigForm]
mov eax, dword [eax + 0x3f0]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov word [ebp - 0x250], 0xb0
mov edx, 0x52c94a
lea eax, [ebp - 0x88]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
xor edx, edx
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x8c]
push ecx
inc dword [ebp - 0x244]
mov edx, 0x52c93e
lea eax, [ebp - 0x84]
call fcn.0050efe0
inc dword [ebp - 0x244]
push dword [eax]
mov edx, 0x52c937
lea eax, [ebp - 0x80]
call fcn.0050efe0
inc dword [ebp - 0x244]