Function at 0x12d9a170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x13056840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebp
push esi
mov dword [esp + 0x60], ecx
push 0x43c
call fcn.12f5bf8b
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x12d9ac51
push ebx
push edi
mov ecx, 0x10f
xor eax, eax
mov edi, ebp
mov dword [esp + 0x18], 1
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], esi
mov eax, dword [edi + 4]
cmp eax, esi
jle 0x12d9ab4f
test byte [esp + 0x10], 1
jne 0x12d9a2a3
lea eax, [esp + 0x1c]
push esi
push eax
mov ecx, edi
call fcn.12d9adb0
mov ebx, dword [eax]
push 0x130c6c68
mov dword [esp + 0x78], 0
call fcn.12f5c44d
push eax
push 0x130c6c68
push ebx
call fcn.12f5e2b3
add esp, 0x10
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x7c]
or ebx, 0xffffffff
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov al, byte [esp + 0x7c]
test al, al
je 0x12d9a2a6
mov ecx, dword [esp + 0x10]
push esi
or ecx, 1
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.12d9adb0
mov edx, dword [eax]
push 0x103
push 0x130c6c68
mov dword [esp + 0x7c], 1
mov dword [esp + 0x84], edx
call fcn.12f5c44d
mov ecx, dword [esp + 0x84]
add esp, 4
lea edx, [ecx + eax*2]
lea eax, [ebp + 0xc]
push edx
push eax
call fcn.12f5c4ab
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d9ab3c
lea eax, [ebp + 0xc]
push eax
push str.CDynAddCMD::SaveConfig_1__proc:_s_
jmp 0x12d9ab2e
or ebx, 0xffffffff
test byte [esp + 0x10], 2
jne 0x12d9a38f
lea eax, [esp + 0x24]
push esi
push eax
mov ecx, edi
call fcn.12d9adb0
mov ecx, dword [eax]
push 0x130c904c
mov dword [esp + 0x78], 2
mov dword [esp + 0x80], ecx
call fcn.12f5c44d
mov edx, dword [esp + 0x80]
push eax
push 0x130c904c
push edx
call fcn.12f5e2b3
add esp, 0x10
lea ecx, [esp + 0x24]
test eax, eax
sete byte [esp + 0x7c]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov al, byte [esp + 0x7c]
test al, al
je 0x12d9a38f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
or ecx, 2
push esi
mov dword [esp + 0x14], ecx
push eax
mov ecx, edi
call fcn.12d9adb0
mov ecx, dword [eax]
push 0x103
push 0x130c904c
mov dword [esp + 0x7c], 3
mov dword [esp + 0x84], ecx
call fcn.12f5c44d
mov edx, dword [esp + 0x84]
add esp, 4
lea eax, [edx + eax*2]
push eax
lea eax, [ebp + 0x214]
push eax
call fcn.12f5c4ab
add esp, 0xc
lea ecx, [esp + 0x28]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d9ab3c
lea eax, [ebp + 0x214]
push eax
push str.CDynAddCMD::SaveConfig_2__cmd:_s_
jmp 0x12d9ab2e
test byte [esp + 0x10], 4
jne 0x12d9a4e2
lea ecx, [esp + 0x2c]
push esi
push ecx
mov ecx, edi
call fcn.12d9adb0
mov edx, dword [eax]
push str.osver
mov dword [esp + 0x78], 4
mov dword [esp + 0x80], edx
call fcn.12f5c44d
push eax
mov eax, dword [esp + 0x84]
push str.osver
push eax
call fcn.12f5e2b3
add esp, 0x10
lea ecx, [esp + 0x2c]
test eax, eax
sete byte [esp + 0x7c]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov al, byte [esp + 0x7c]
test al, al
je 0x12d9a4e2
mov ecx, dword [esp + 0x10]
push esi
or ecx, 4
xor eax, eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x84], eax
mov dword [esp + 0x1c], eax
call fcn.12d9adb0
mov edx, dword [eax]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x7c]
push eax
push ecx
push str._lu__lu
push str.osver
mov dword [esp + 0x84], 5
mov dword [esp + 0x40], edx
call fcn.12f5c44d
mov edx, dword [esp + 0x40]
add esp, 4
lea eax, [edx + eax*2]
push eax
call fcn.12f5cf93
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d9a49c
call fcn.12f9caf0
push eax
call fcn.12f9cae0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
push eax
push ecx
push edx
push str.CDynAddCMD::SaveConfig_3__OsVer:_08x__08x____08x__08x_
push str.command
push ebx
call fcn.12dad750
add esp, 0x1c
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x12d9a4b0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x12d9ab43
call fcn.12f9cae0
cmp dword [esp + 0x7c], eax
ja 0x12d9abb2
call fcn.12f9cae0
cmp dword [esp + 0x7c], eax
jne 0x12d9ab3c
call fcn.12f9caf0
cmp dword [esp + 0x14], eax
ja 0x12d9abb2
jmp 0x12d9ab3c
test byte [esp + 0x10], 8
jne 0x12d9a5d3
lea eax, [esp + 0x38]
push esi
push eax
mov ecx, edi
call fcn.12d9adb0
mov ecx, dword [eax]
push str.prover
mov dword [esp + 0x78], 6
mov dword [esp + 0x80], ecx
call fcn.12f5c44d
mov edx, dword [esp + 0x80]
push eax
push str.prover
push edx
call fcn.12f5e2b3
add esp, 0x10
lea ecx, [esp + 0x38]
test eax, eax
sete byte [esp + 0x7c]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov al, byte [esp + 0x7c]
test al, al
je 0x12d9a5d3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
or ecx, 8
push esi
mov dword [esp + 0x14], ecx
push eax
mov ecx, edi
mov dword [esp + 0x84], 0
call fcn.12d9adb0
mov ecx, dword [eax]
lea edx, [esp + 0x7c]
push edx
push 0x130c92a0
push str.prover
mov dword [esp + 0x80], 7
mov dword [esp + 0x3c], ecx
call fcn.12f5c44d
mov ecx, dword [esp + 0x3c]
add esp, 4
lea edx, [ecx + eax*2]
push edx
call fcn.12f5cf93
add esp, 0xc
lea ecx, [esp + 0x3c]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov eax, dword [esp + 0x7c]
mov dword [ebp + 8], eax
mov ecx, dword [0x13198f68]
test ecx, ecx
je 0x12d9ab3c
push eax
push str.CDynAddCMD::SaveConfig_4__ProVer:0x_08x_
jmp 0x12d9ab2e
test byte [esp + 0x10], 0x10
jne 0x12d9a768
lea eax, [esp + 0x40]
push esi
push eax
mov ecx, edi
call fcn.12d9adb0
mov ecx, dword [eax]
push str.with
mov dword [esp + 0x78], 8
mov dword [esp + 0x80], ecx
call fcn.12f5c44d
mov edx, dword [esp + 0x80]
push eax
push str.with
push edx
call fcn.12f5e2b3
add esp, 0x10
lea ecx, [esp + 0x40]
test eax, eax
sete byte [esp + 0x7c]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov al, byte [esp + 0x7c]
test al, al
je 0x12d9a768
lea eax, [esp + 0x44]
push esi
push eax
mov ecx, edi
call fcn.12d9adb0
mov ecx, dword [eax]
push str.with
mov dword [esp + 0x78], 9
mov ebx, dword [ecx - 8]
call fcn.12f5c44d
add esp, 4
lea ecx, [esp + 0x44]
sub ebx, eax
mov dword [esp + 0x74], 0xffffffff
call fcn.12f47220
lea edx, [ebx + ebx + 2]
push edx
call fcn.12f5bf8b
mov ecx, dword [ebp + 0x41c]
add esp, 4
mov dword [ebp + ecx*4 + 0x420], eax
mov edx, dword [ebp + 0x41c]
mov eax, dword [ebp + edx*4 + 0x420]
test eax, eax
je 0x12d9ab4f
lea eax, [esp + 0x48]
push esi
push eax
mov ecx, edi
call fcn.12d9adb0
mov ecx, dword [eax]
push ebx
push str.with
mov dword [esp + 0x7c], 0xa
mov dword [esp + 0x84], ecx
call fcn.12f5c44d
mov edx, dword [esp + 0x84]
mov ecx, dword [ebp + 0x41c]
add esp, 4
lea eax, [edx + eax*2]
mov edx, dword [ebp + ecx*4 + 0x420]
push eax
push edx
call fcn.12f5c4ab
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], 0xffffffff
call fcn.12f47220
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp + eax*4 + 0x420]
mov word [ecx + ebx*2], 0
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d9a741
mov edx, dword [ebp + 0x41c]
mov eax, dword [ebp + edx*4 + 0x420]
push eax
push str.CDynAddCMD::SaveConfig_5__WithCmd:_s_
push str.command
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov ecx, dword [ebp + 0x41c]
inc ecx
mov eax, ecx
mov dword [ebp + 0x41c], ecx
cmp eax, 2
jb 0x12d9ab3c
mov eax, dword [esp + 0x10]
or al, 0x10
mov dword [esp + 0x10], eax
jmp 0x12d9ab3c
test byte [esp + 0x10], 0x20
jne 0x12d9a8fd
lea ecx, [esp + 0x4c]
push esi
push ecx
mov ecx, edi
call fcn.12d9adb0
mov edx, dword [eax]
push str.not
mov dword [esp + 0x78], 0xb
mov dword [esp + 0x80], edx
call fcn.12f5c44d
push eax
mov eax, dword [esp + 0x84]
push str.not
push eax
call fcn.12f5e2b3
add esp, 0x10
lea ecx, [esp + 0x4c]
test eax, eax
sete byte [esp + 0x7c]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov al, byte [esp + 0x7c]
test al, al
je 0x12d9a8fd
lea ecx, [esp + 0x50]
push esi
push ecx
mov ecx, edi
call fcn.12d9adb0
mov edx, dword [eax]
push str.not
mov dword [esp + 0x78], 0xc
mov ebx, dword [edx - 8]
call fcn.12f5c44d
add esp, 4
lea ecx, [esp + 0x50]
sub ebx, eax
mov dword [esp + 0x74], 0xffffffff
call fcn.12f47220
lea eax, [ebx + ebx + 2]
push eax
call fcn.12f5bf8b
mov ecx, dword [ebp + 0x428]
add esp, 4
mov dword [ebp + ecx*4 + 0x42c], eax
mov edx, dword [ebp + 0x428]
mov eax, dword [ebp + edx*4 + 0x42c]
test eax, eax
je 0x12d9ab4f
lea eax, [esp + 0x54]
push esi
push eax
mov ecx, edi
call fcn.12d9adb0
mov ecx, dword [eax]
push ebx
push str.not
mov dword [esp + 0x7c], 0xd
mov dword [esp + 0x84], ecx
call fcn.12f5c44d
mov edx, dword [esp + 0x84]
mov ecx, dword [ebp + 0x428]
add esp, 4
lea eax, [edx + eax*2]
mov edx, dword [ebp + ecx*4 + 0x42c]
push eax
push edx
call fcn.12f5c4ab
add esp, 0xc
lea ecx, [esp + 0x54]
mov dword [esp + 0x74], 0xffffffff
call fcn.12f47220
mov eax, dword [ebp + 0x428]
mov ecx, dword [ebp + eax*4 + 0x42c]
mov word [ecx + ebx*2], 0
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d9a8d6
mov edx, dword [ebp + 0x428]
mov eax, dword [ebp + edx*4 + 0x42c]
push eax
push str.CDynAddCMD::SaveConfig_6__NotCmd:_s_
push str.command
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov ecx, dword [ebp + 0x428]
inc ecx
mov eax, ecx
mov dword [ebp + 0x428], ecx
cmp eax, 2
jb 0x12d9ab3c
mov eax, dword [esp + 0x10]
or al, 0x20
mov dword [esp + 0x10], eax
jmp 0x12d9ab3c
test byte [esp + 0x10], 0x40
jne 0x12d9aa2d
lea ecx, [esp + 0x58]
push esi
push ecx
mov ecx, edi
call fcn.12d9adb0
mov edx, dword [eax]
push str.pos
mov dword [esp + 0x78], 0xe
mov dword [esp + 0x80], edx
call fcn.12f5c44d
push eax
mov eax, dword [esp + 0x84]
push str.pos
push eax
call fcn.12f5e2b3
add esp, 0x10
lea ecx, [esp + 0x58]
test eax, eax
sete byte [esp + 0x7c]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov al, byte [esp + 0x7c]
test al, al
je 0x12d9aa2d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
push esi
or edx, 0x40
push ecx
mov ecx, edi
mov dword [esp + 0x18], edx
mov dword [ebp + 0x434], 3
call fcn.12d9adb0
mov edx, dword [eax]
push str.pos
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x80], edx
call fcn.12f5c44d
mov ecx, dword [esp + 0x80]
add esp, 4
mov dword [esp + 0x74], ebx
mov dx, word [ecx + eax*2]
lea ecx, [esp + 0x5c]
mov word [esp + 0x7c], dx
call fcn.12f47220
cmp word [esp + 0x7c], 0x31
jne 0x12d9a9d7
mov dword [ebp + 0x434], 1
jmp 0x12d9aa0f
mov eax, dword [esp + 0x7c]
cmp ax, 0x32
jne 0x12d9a9ed
mov dword [ebp + 0x434], 2
jmp 0x12d9aa0f
cmp ax, 0x33
jne 0x12d9a9ff
mov dword [ebp + 0x434], 3
jmp 0x12d9aa0f
cmp ax, 0x34
jne 0x12d9aa0f
mov dword [ebp + 0x434], 4
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d9ab3c
mov eax, dword [ebp + 0x434]
push eax
push str.CDynAddCMD::SaveConfig_7__Pos:_08x_
jmp 0x12d9ab2e
test byte [esp + 0x10], 0x80
jne 0x12d9ab3c
lea ecx, [esp + 0x60]
push esi
push ecx
mov ecx, edi
call fcn.12d9adb0
mov edx, dword [eax]
push str.relation
mov dword [esp + 0x78], 0x10
mov dword [esp + 0x80], edx
call fcn.12f5c44d
push eax
mov eax, dword [esp + 0x84]
push str.relation
push eax
call fcn.12f5e2b3
add esp, 0x10
lea ecx, [esp + 0x60]
test eax, eax
sete byte [esp + 0x7c]
mov dword [esp + 0x74], ebx
call fcn.12f47220
mov al, byte [esp + 0x7c]
test al, al
je 0x12d9ab3c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push esi
or dl, 0x80
push ecx
mov ecx, edi
mov dword [esp + 0x18], edx
mov dword [ebp + 0x438], 0
call fcn.12d9adb0
mov edx, dword [eax]
push str.relation
mov dword [esp + 0x78], 0x11
mov dword [esp + 0x80], edx
call fcn.12f5c44d
mov ecx, dword [esp + 0x80]
add esp, 4
mov dword [esp + 0x74], ebx
mov dx, word [ecx + eax*2]
lea ecx, [esp + 0x64]
mov word [esp + 0x7c], dx
call fcn.12f47220
cmp word [esp + 0x7c], 0x31
jne 0x12d9ab07
mov dword [ebp + 0x438], 1
jmp 0x12d9ab19
cmp word [esp + 0x7c], 0x32
jne 0x12d9ab19
mov dword [ebp + 0x438], 2
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d9ab3c
mov eax, dword [ebp + 0x438]
push eax
push str.CDynAddCMD::SaveConfig_8__Relation:_08x_
push str.command
push ebx
call fcn.12dad750
add esp, 0x10
cmp byte [esp + 0x10], 0xff
je 0x12d9ab4f
mov eax, dword [edi + 4]
inc esi
cmp esi, eax
jl 0x12d9a1cf
mov eax, dword [ebp + 0x434]
xor edi, edi
cmp eax, edi
jne 0x12d9ab65
mov dword [ebp + 0x434], 3
mov ebx, dword [esp + 0x68]
mov edx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x84]
mov esi, edx
mov dword [esp + 0x14], esi
inc esi
cmp esi, edi
jne 0x12d9ac64
cmp eax, edi
je 0x12d9ab97
push eax
call fcn.12f5bf80
add esp, 4
mov dword [ebx + 0x84], edi
mov edx, dword [ebx + 0x84]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x8c], edi
mov dword [ebx + 0x88], edi
mov dword [edx + eax*4], ebp
jmp 0x12d9ac2d
mov eax, dword [ebp + 0x41c]
xor edi, edi
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x12d9abef
lea esi, [ebp + 0x420]
mov eax, dword [esi]
test eax, eax
je 0x12d9abe1
push eax
call fcn.12f5bf80
add esp, 4
mov dword [esi], 0
mov eax, dword [ebp + 0x41c]
inc edi
add esi, 4
cmp edi, eax
jb 0x12d9abcc
mov eax, dword [ebp + 0x428]
xor edi, edi
test eax, eax
jbe 0x12d9ac24
lea esi, [ebp + 0x42c]
mov eax, dword [esi]
test eax, eax
je 0x12d9ac16
push eax
call fcn.12f5bf80
add esp, 4
mov dword [esi], 0
mov eax, dword [ebp + 0x428]
inc edi
add esi, 4
cmp edi, eax
jb 0x12d9ac01
push ebp
call fcn.12f5bf80
add esp, 4
mov eax, dword [0x13198f68]
pop edi
test eax, eax
pop ebx
je 0x12d9ac51
mov ecx, dword [esp + 0x10]
push ecx
push str.CDynAddCMD::SaveConfig______d_
push str.command
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov ecx, dword [esp + 0x64]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x68
ret 4
cmp eax, edi
jne 0x12d9acb2
lea edi, [esi*4]
push edi
call fcn.12f5bf8b
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x84], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [ebx + 0x84]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x8c], esi
mov dword [ebx + 0x88], esi
mov dword [edx + eax*4], ebp
jmp 0x12d9ac2d
mov ecx, dword [ebx + 0x8c]
cmp esi, ecx
jg 0x12d9ace3
cmp esi, edx
jle 0x12d9accb
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x84]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x88], esi
mov dword [edx + eax*4], ebp
jmp 0x12d9ac2d
mov eax, dword [ebx + 0x90]
cmp eax, edi
jne 0x12d9ad10
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x12d9ad04
mov eax, 4
jmp 0x12d9ad10
cmp eax, 0x400
jle 0x12d9ad10
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x7c], eax
jl 0x12d9ad1e
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0x7c]
lea ecx, [eax*4]
push ecx
call fcn.12f5bf8b
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebx + 0x84]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x6c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x88]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x84]
push edx
call fcn.12f5bf80
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x84]
mov dword [ebx + 0x84], eax
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x88], esi
mov dword [ebx + 0x8c], ecx
add esp, 8
mov dword [edx + eax*4], ebp
jmp 0x12d9ac2d