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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x551700
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x59de30]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x59de30]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edi
cmp ebx, edi
je 0x410173
push 0
push 0x57dfd1
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.004014f0
mov dword [esp + 0xb0], 0
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], eax
mov esi, dword [eax]
cmp esi, eax
je 0x41013e
mov ecx, dword [ebx]
lea eax, [esi + 0x28]
mov edi, ecx
push eax
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.00414130
mov ecx, dword [ebx]
cmp eax, ecx
je 0x40fe2b
cmp dword [eax + 0x24], 0x10
mov ebx, dword [eax + 0x20]
lea edx, [eax + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ebx
jb 0x40fd19
mov edx, dword [edx]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x14], 0x10
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x2c], ebx
jb 0x40fd30
mov edx, dword [edx]
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x28]
mov edx, ebx
cmp dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
cmovb ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
test ebx, ebx
mov ebx, dword [esp + 0x14]
je 0x40fdf8
sub dword [esp + 0x18], 4
jb 0x40fd85
lea ebx, [ebx]
mov edx, dword [edx]
mov ebx, dword [esp + 0x1c]
cmp edx, dword [ebx]
mov edx, dword [esp + 0x10]
jne 0x40fd8c
add dword [esp + 0x1c], 4
mov ebx, dword [esp + 0x14]
add edx, 4
sub dword [esp + 0x18], 4
mov dword [esp + 0x10], edx
jae 0x40fd60
cmp dword [esp + 0x18], 0xfffffffc
je 0x40fdf2
mov ebx, dword [esp + 0x1c]
mov dl, byte [edx]
cmp dl, byte [ebx]
mov ebx, dword [esp + 0x14]
jne 0x40fdeb
cmp dword [esp + 0x18], 0xfffffffd
je 0x40fdf2
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov dl, byte [edx + 1]
cmp dl, byte [ebx + 1]
mov ebx, dword [esp + 0x14]
jne 0x40fdeb
cmp dword [esp + 0x18], 0xfffffffe
je 0x40fdf2
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov dl, byte [edx + 2]
cmp dl, byte [ebx + 2]
mov ebx, dword [esp + 0x14]
jne 0x40fdeb
cmp dword [esp + 0x18], 0xffffffff
je 0x40fdf2
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov dl, byte [edx + 3]
cmp dl, byte [ebx + 3]
mov ebx, dword [esp + 0x14]
je 0x40fdf2
sbb edx, edx
or edx, 1
jmp 0x40fdf4
xor edx, edx
test edx, edx
jne 0x40fe1a
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x2c], edx
jae 0x40fe07
or edx, 0xffffffff
jmp 0x40fe18
mov ebx, dword [esp + 0x28]
xor edx, edx
cmp dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x14]
setne dl
test edx, edx
sets dl
test dl, dl
jne 0x40fe2b
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
jmp 0x40fe33
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x38]
cmp dword [eax], edi
jne 0x40fe86
cmp byte [esi + 0xd], 0
jne 0x40fe77
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40fe5c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40fe77
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40fe50
jmp 0x40fe77
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40fe75
cmp esi, dword [eax + 8]
jne 0x40fe75
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40fe65
mov esi, eax
cmp esi, dword [esp + 0x34]
jne 0x40fce4
jmp 0x41013a
add esi, 0x28
lea eax, [esp + 0x40]
cmp eax, esi
je 0x40fe9d
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00401630
cmp dword [esp + 0x50], 0
je 0x41013a
call fcn.00412960
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
push ebx
lea eax, [esp + 0x78]
push eax
call fcn.00411b10
mov byte [esp + 0xb0], 1
cmp dword [esp + 0x80], 0
lea eax, [esp + 0x40]
je 0x41008e
cmp dword [esp + 0x54], 0x10
mov ecx, dword [esp + 0x30]
cmovae eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00410d40
mov byte [esp + 0xb0], 2
cmp dword [esp + 0x9c], 0x10
lea ecx, [esp + 0x88]
cmovae ecx, dword [esp + 0x88]
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push ecx
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00410a30
mov byte [esp + 0xb0], 3
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
push 0x57e178
push eax
call fcn.00410820
mov edi, eax
test edi, edi
jne 0x40ff68
mov edi, 0xc
mov dword [esp + 0x20], edi
jmp 0x40ffc6
cmp dword [esp + 0x84], 0x10
lea esi, [esp + 0x70]
cmovae esi, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x20], eax
test esi, esi
je 0x40ffb1
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
jle 0x40ffb1
push esi
push edi
call fcn.004dfca7
add esp, 8
test eax, eax
jne 0x40ffb9
mov dword [esp + 0x20], 0xc
jmp 0x40ffb9
mov dword [esp + 0x20], 6
push edi
call fcn.004de123
mov edi, dword [esp + 0x24]
add esp, 4
push 1
push 0x104
call fcn.004dbc31
add esp, 8
mov esi, eax
test edi, edi
jne 0x410057
test esi, esi
je 0x410064
cmp dword [esp + 0x54], 0x10
lea ecx, [esp + 0x40]
cmovae ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x34]
push str.AMTConfigPath
push 0x104
push esi
call fcn.0040ef20
test eax, eax
jne 0x410057
push esi
call fcn.004048a0
add esp, 4
test eax, eax
je 0x410057
push 0x57e178
push esi
call fcn.00410820
mov edi, eax
test edi, edi
jne 0x410032
mov dword [esp + 0x20], 0xc
jmp 0x410057
cmp dword [esp + 0x84], 0x10
lea eax, [esp + 0x70]
cmovae eax, dword [esp + 0x70]
push eax
push edi
call fcn.004108f0
push edi
mov dword [esp + 0x24], eax
call fcn.004de123
add esp, 4
test esi, esi
je 0x410064
push esi
call fcn.004dbc6f
add esp, 4
cmp dword [esp + 0x6c], 0x10
jb 0x410077
push dword [esp + 0x58]
call fcn.004daf24
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
jmp 0x41010b
cmp dword [esp + 0x54], 0x10
cmovae eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00412a40
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov byte [esp + 0xcc], 4
push 0
lea eax, [esp + 0xa8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401630
lea eax, [esp + 0x70]
push eax
call fcn.00412060
mov byte [esp + 0xb0], 5
cmp dword [eax + 0x14], 8
jb 0x4100ef
mov eax, dword [eax]
push eax
call fcn.004ddaf6
add esp, 4
cmp dword [esp + 0x6c], 8
jb 0x41010b
push dword [esp + 0x58]
call fcn.004daf24
add esp, 4
cmp dword [esp + 0x9c], 0x10
jb 0x410124
push dword [esp + 0x88]
call fcn.004daf24
add esp, 4
cmp dword [esp + 0x84], 0x10
jb 0x41013a
push dword [esp + 0x70]
call fcn.004daf24
add esp, 4
mov edi, dword [esp + 0x24]
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x54], 0x10
jb 0x41015c
push dword [esp + 0x40]
call fcn.004daf24
add esp, 4
mov esi, dword [esp + 0x30]
add ebx, 8
mov dword [esp + 0x14], ebx
cmp ebx, edi
jne 0x40fca1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret