Function at 0x425610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov eax, edi
mov dword [esp + 0x20], ebx
call fcn.00423c10
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x58
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x94], ebx
call fcn.00431310
mov ecx, dword [edi + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 0x58
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
add esp, 0xc
or eax, ecx
jge 0x4256b1
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.00403650
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x4256c0
push 0x80070057
call fcn.004036a0
mov dword [esi - 0xc], edi
xor edx, edx
mov word [esi + 0x208], dx
cmp dword [0x45f36c], 5
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x208
mov dword [esp + 0x30], str.Settings_Backup_File__.sbf_
mov dword [esp + 0x3c], 1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0x800
jne 0x425712
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
jmp 0x425725
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x5c], 0x1800
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp eax, ebx
jne 0x425759
add esi, 0xfffffff0
mov dword [esp + 0x88], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x425921
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x425921
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x425760
sub eax, edx
sar eax, 1
cmp eax, ebx
jl 0x4256b6
cmp eax, dword [esi - 8]
jg 0x4256b6
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edx, [esp + 0x18]
mov word [esi + eax*2], cx
push edx
mov ecx, str..sbf
call fcn.004037a0
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
cmp dword [esi - 0xc], eax
jle 0x4257d7
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406df0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 1
call fcn.00425940
add esp, 4
test al, al
je 0x4257d7
mov bl, 1
jmp 0x4257d9
xor bl, bl
test byte [esp + 0x1c], 1
je 0x425800
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425800
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42581b
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403a70
mov esi, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x3c]
push esi
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x14]
mov edi, 0x46024c
call fcn.00403840
lea edi, [ebx + 0x20]
push 1
mov eax, edi
call fcn.004259a0
test eax, eax
je 0x4258d2
test edi, edi
je 0x425854
lea eax, [edi - 0x20]
jmp 0x425856
xor eax, eax
mov eax, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x400
push eax
call ebx
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x45f370], eax
test edi, edi
je 0x425885
lea eax, [edi - 0x20]
jmp 0x425887
xor eax, eax
mov ecx, dword [eax + 4]
push 0x403
push ecx
call ebx
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x45f374], eax
test edi, edi
je 0x4258b0
lea eax, [edi - 0x20]
jmp 0x4258b2
xor eax, eax
mov edx, dword [eax + 4]
push 0x404
push edx
call ebx
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x45d528], eax
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4258fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425921
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4