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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431ff2
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x442310]
xor eax, esp
mov dword [esp + 0x16c], eax
push esi
push edi
mov eax, dword [0x442310]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x447984]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0
test al, 1
jne 0x403e95
or eax, 1
mov dword [0x44799c], 0xf
push 0x433590
mov dword [0x447984], eax
mov dword [0x447998], 0
mov byte [0x447988], 0
call fcn.0041e439
add esp, 4
cmp dword [0x447998], 0
je 0x403ec4
push 0xffffffffffffffff
push 0
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push 0x447988
mov byte [edi], 0
call fcn.00401f00
jmp 0x40436c
mov ecx, esi
call sym.IPSClientService.exe_public:_char_const____thiscall_CUtilities::GetServicePathA_void_
mov edx, eax
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
cmp byte [edx], 0
jne 0x403ef4
xor ecx, ecx
jmp 0x403f09
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f00
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.004022d0
push 0x1c
push str.IPSClientService.exe.config
lea ecx, [esp + 0x90]
mov dword [esp + 0x190], 0
call fcn.004057f0
push 0xc8
lea eax, [esp + 0xb0]
push 0
push eax
call fcn.0041dbc0
add esp, 0xc
lea ecx, [esp + 0xac]
call fcn.0040ddb0
mov byte [esp + 0x188], 1
lea eax, [esp + 0x88]
cmp dword [esp + 0x9c], 0x10
lea ecx, [esp + 0xac]
push 0
cmovae eax, dword [esp + 0x8c]
push 0x74
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0040f890
cmp dword [esp + 0xa0], 0
lea ecx, [esp + 0xac]
jne 0x404325
push str.appSettings
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push str.configuration
lea eax, [esp + 0x2c]
push eax
call fcn.0040e310
mov ecx, eax
call fcn.0040e310
lea ecx, [esp + 0x24]
call fcn.0040f430
test al, al
jne 0x40431e
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
lea ecx, [esp + 0x28]
call fcn.0040f480
lea ecx, [esp + 0x20]
call fcn.0040dec0
test eax, eax
je 0x40431e
lea ecx, [esp + 0x20]
call fcn.0040f430
test al, al
jne 0x404253
push 3
push 0x43b0d4
lea ecx, [esp + 0x78]
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], al
call fcn.004022d0
mov byte [esp + 0x188], 2
lea ecx, [esp + 0x40]
push 5
push str.value
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.004022d0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
lea eax, [esp + 0x1c]
mov byte [esp + 0x188], 5
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0
call fcn.0040f440
lea ecx, [esp + 0x1c]
call fcn.0040dec0
test eax, eax
je 0x404199
jmp 0x4040d0
cmp dword [esp + 0x84], 0x10
lea esi, [esp + 0x70]
lea ecx, [esp + 0x1c]
cmovae esi, dword [esp + 0x70]
call fcn.0040fa70
push eax
push esi
call fcn.0042031a
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
jne 0x404126
call fcn.004125f0
mov edx, eax
cmp byte [edx], 0
jne 0x404111
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
jmp 0x40416e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404116
sub ecx, esi
push ecx
lea ecx, [esp + 0x2c]
jmp 0x40416e
cmp dword [esp + 0x54], 0x10
lea esi, [esp + 0x40]
cmovae esi, dword [esp + 0x40]
call fcn.0040fa70
push eax
push esi
call fcn.0042031a
add esp, 8
test eax, eax
jne 0x404174
lea ecx, [esp + 0x1c]
call fcn.004125f0
mov edx, eax
cmp byte [edx], 0
jne 0x40415b
xor ecx, ecx
jmp 0x404169
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404160
sub ecx, esi
push ecx
lea ecx, [esp + 0x5c]
push edx
call fcn.004022d0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.0040f480
lea ecx, [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.0040dec0
test eax, eax
jne 0x4040d0
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
push str.serverHostName
cmovae eax, dword [esp + 0x2c]
push eax
call fcn.0042031a
add esp, 8
test eax, eax
je 0x40427d
cmp dword [esp + 0x6c], 0x10
jb 0x4041d0
push dword [esp + 0x58]
call fcn.0040f3b0
add esp, 4
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
jb 0x4041f8
push dword [esp + 0x28]
call fcn.0040f3b0
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jb 0x404220
push dword [esp + 0x40]
call fcn.0040f3b0
add esp, 4
mov byte [esp + 0x188], 1
cmp dword [esp + 0x84], 0x10
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jb 0x404253
push dword [esp + 0x70]
call fcn.0040f3b0
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.0040fa90
lea ecx, [esp + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
call fcn.0040dec0
test eax, eax
jne 0x404005
jmp 0x40431e
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x60]
mov ecx, 0x447988
push eax
call fcn.00401f00
cmp dword [esp + 0x6c], 0x10
jb 0x4042a3
push dword [esp + 0x58]
call fcn.0040f3b0
add esp, 4
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
jb 0x4042cb
push dword [esp + 0x28]
call fcn.0040f3b0
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jb 0x4042f3
push dword [esp + 0x40]
call fcn.0040f3b0
add esp, 4
cmp dword [esp + 0x84], 0x10
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jb 0x40431e
push dword [esp + 0x70]
call fcn.0040f3b0
add esp, 4
lea ecx, [esp + 0xac]
mov byte [esp + 0x188], 0
call fcn.0040de10
push 0xffffffffffffffff
push 0
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push 0x447988
mov byte [edi], 0
call fcn.00401f00
cmp dword [esp + 0x9c], 0x10
jb 0x40436c
push dword [esp + 0x88]
call fcn.0040f3b0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4