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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x582b3b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x34], esi
call fcn.0045dfd3
push 0x5b3728
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
call fcn.00453e50
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b6bb
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x5f38c8
mov dword [esp + 0xf0], ebx
call fcn.00432310
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xec], 1
call fcn.004037d0
mov byte [esp + 0xe8], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b71c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [0x5f3980]
mov dword [esp + 0x30], edi
cmp edi, 0xa
ja case.default.0x40b736
movzx ecx, byte [edi + 0x40c154]
jmp dword [ecx*4 + 0x40c148]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SPINFO
call fcn.00403320
push ecx
mov byte [esp + 0xf0], 2
mov ecx, esp
mov dword [esp + 0x34], esp
push str.NetworkConnected
call fcn.00403320
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x5f38c8
mov byte [esp + 0xf4], bl
call fcn.00436360
mov byte [esp + 0xe8], 3
mov eax, dword [eax]
push eax
lea ecx, [esi + 0x45c]
call fcn.0045aae7
mov byte [esp + 0xe8], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
mov ecx, 0x5f38c8
call fcn.004329f0
cmp eax, ebx
jne 0x40b7ce
xor eax, eax
jmp 0x40b7d1
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x47c]
push 1
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5b1e1c
call fcn.00403320
push ecx
mov byte [esp + 0xf0], 4
mov ecx, esp
mov dword [esp + 0x34], esp
push str.NetworkConnected
call fcn.00403320
lea edx, [esp + 0x30]
push edx
mov ecx, 0x5f38c8
mov byte [esp + 0xf4], bl
call fcn.00436360
mov byte [esp + 0xe8], 5
mov eax, dword [eax]
push eax
lea ecx, [esi + 0x114]
call fcn.0045aae7
mov byte [esp + 0xe8], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b955
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b955
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5b1e1c
call fcn.00403320
push ecx
mov byte [esp + 0xf0], 6
mov ecx, esp
mov dword [esp + 0x34], esp
push str.NetworkConnected
call fcn.00403320
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x5f38c8
mov byte [esp + 0xf4], bl
call fcn.00436360
mov byte [esp + 0xe8], 7
mov eax, dword [eax]
push eax
lea ecx, [esi + 0x114]
call fcn.0045aae7
mov byte [esp + 0xe8], bl
mov eax, dword [esp + 0x20]
jmp 0x40b92d
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5b1e1c
call fcn.00403320
push ecx
mov byte [esp + 0xf0], 8
mov ecx, esp
mov dword [esp + 0x34], esp
push str.LocalConnected
call fcn.00403320
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x5f38c8
mov byte [esp + 0xf4], bl
call fcn.00436360
mov byte [esp + 0xe8], 9
mov eax, dword [eax]
push eax
lea ecx, [esi + 0x114]
call fcn.0045aae7
mov byte [esp + 0xe8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b949
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [esi + 0x45c]
call fcn.0045abb2
movzx ecx, byte [edi + 0x40c170]
jmp dword [ecx*4 + 0x40c160]
mov edx, dword [esp + 0x24]
lea edi, [esi + 0xa0]
push edx
mov ecx, edi
call fcn.00402f60
cmp dword [esi + 0xa4], ebx
je 0x40b9b1
mov eax, dword [0x5f3aa4]
cmp eax, dword [edi + 0x30]
je 0x40b9b1
mov eax, edi
call fcn.00421200
push 4
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x5f38c8
call fcn.00432310
push str.re_pof.png
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0xf4], 0xa
call fcn.004024e0
add esp, 0xc
mov byte [esp + 0xe8], 0xc
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
lea edi, [esi + 0xd8]
push ecx
mov ecx, edi
call fcn.00402f60
cmp dword [esi + 0xdc], ebx
je 0x40ba31
mov edx, dword [0x5f3aa4]
cmp edx, dword [edi + 0x30]
je 0x40ba31
mov eax, edi
call fcn.00421200
lea edi, [esp + 0x54]
call fcn.00401eb0
push 0x5f399c
mov ebx, edi
mov byte [esp + 0xec], 0xd
call fcn.00401000
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ba68
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0xffffffffffffffff
mov ecx, 0x5f38c8
mov byte [esp + 0xec], 0xe
call fcn.004623d1
mov ecx, dword [esi + 0x110]
lea ebx, [esi + 0x110]
push ecx
push str.GetDefaultPrinter__s__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
lea esi, [esp + 0x14]
mov edi, 0x5f38c8
call fcn.0040b250
push eax
mov ecx, ebx
mov byte [esp + 0xec], 0xf
call fcn.004037d0
mov byte [esp + 0xe8], 0xe
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40baf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x34]
add esi, 0x32c
mov dword [esp + 0x14], 4
push 4
mov ecx, 0x5f38c8
call fcn.004329f0
test eax, eax
je 0x40bb16
mov eax, dword [eax + 4]
mov ecx, dword [esi - 0x150]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push ecx
call edi
push 4
mov ecx, 0x5f38c8
call fcn.004329f0
test eax, eax
je 0x40bb3d
mov eax, dword [eax + 4]
mov edx, dword [esi]
push 1
push eax
push 0x30
push edx
call edi
add esi, 0x54
sub dword [esp + 0x14], 1
jne 0x40bb03
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bb6b
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xe8], 0x10
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bb9d
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xe8], 0x11
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bbcf
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0xe8], 0x12
mov ecx, dword [ebx]
xor esi, esi
cmp dword [ecx - 0xc], esi
je 0x40bf55
lea edx, [esp + 0x44]
push edx
call fcn.004219e0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xec], 0x13
mov eax, dword [ebx]
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov edi, esp
push eax
lea esi, [esp + 0x38]
call fcn.00403760
add eax, 0x10
add esp, 4
mov ecx, esi
lea edx, [esp + 0x50]
mov dword [edi], eax
call fcn.00421cf0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
push str.GetPortInfo__s___s___s___s__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
push str.ITM_Printer
call fcn.00403320
push ecx
mov byte [esp + 0xf0], 0x14
mov ecx, esp
mov dword [esp + 0x40], esp
push str.NetworkConnected
call fcn.00403320
lea eax, [esp + 0x24]
push eax
mov ecx, 0x5f38c8
mov byte [esp + 0xf4], 0x13
call fcn.00436360
mov edi, dword [esp + 0x34]
mov byte [esp + 0xe8], 0x15
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x1bc]
call fcn.0045aae7
mov byte [esp + 0xe8], 0x13
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bcdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x1c]
push 0x5b38b4
push edx
call fcn.00404130
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
lea ecx, [edi + 0x30c]
call fcn.0045aae7
mov ebx, dword [esp + 0x28]
cmp dword [ebx - 0xc], 0
mov esi, 1
je 0x40bdbe
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.ITM_Port
call fcn.00403320
push ecx
mov byte [esp + 0xf0], 0x16
mov ecx, esp
mov dword [esp + 0x44], esp
push str.NetworkConnected
call fcn.00403320
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x5f38c8
mov byte [esp + 0xf4], 0x13
call fcn.00436360
mov byte [esp + 0xe8], 0x17
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x210]
call fcn.0045aae7
mov byte [esp + 0xe8], 0x13
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bd96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [esp + 0x1c]
push 0x5b38b4
push ecx
call fcn.00404130
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
lea ecx, [edi + 0x360]
call fcn.0045aae7
mov esi, 2
cmp dword [esp + 0x30], 7
je 0x40bf3e
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
je 0x40be86
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.ITM_IPAddress
call fcn.00403320
push ecx
mov byte [esp + 0xf0], 0x18
mov ecx, esp
mov dword [esp + 0x44], esp
push str.NetworkConnected
call fcn.00403320
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x5f38c8
mov byte [esp + 0xf4], 0x13
call fcn.00436360
mov edx, esi
imul edx, edx, 0x54
mov byte [esp + 0xe8], 0x19
mov eax, dword [eax]
lea ebx, [edx + edi]
push eax
lea ecx, [ebx + 0x1bc]
call fcn.0045aae7
mov byte [esp + 0xe8], 0x13
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push 0x5b38b4
push edx
call fcn.00404130
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
lea ecx, [ebx + 0x30c]
call fcn.0045aae7
inc esi
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
je 0x40bf3e
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.ITM_MacAddress
call fcn.00403320
push ecx
mov byte [esp + 0xf0], 0x1a
mov ecx, esp
mov dword [esp + 0x44], esp
push str.NetworkConnected
call fcn.00403320
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x5f38c8
mov byte [esp + 0xf4], 0x13
call fcn.00436360
mov edx, esi
imul edx, edx, 0x54
mov byte [esp + 0xe8], 0x1b
mov eax, dword [eax]
add edi, edx
push eax
lea ecx, [edi + 0x1bc]
call fcn.0045aae7
mov byte [esp + 0xe8], 0x13
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [esp + 0x1c]
push 0x5b38b4
push ecx
call fcn.00404130
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
lea ecx, [edi + 0x30c]
call fcn.0045aae7
inc esi
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0xec], 0x12
call fcn.00421ad0
cmp esi, 4
jge 0x40bf8e
mov edx, dword [esp + 0x34]
mov ecx, esi
imul ecx, ecx, 0x54
mov edi, 4
lea ebx, [ecx + edx + 0x30c]
sub edi, esi
lea esp, [esp]
push 0
lea ecx, [ebx - 0x150]
call fcn.0045abb2
push 0
mov ecx, ebx
call fcn.0045abb2
add ebx, 0x54
sub edi, 1
jne 0x40bf70
mov esi, dword [esp + 0x34]
push 5
lea ecx, [esi + 0x114]
call fcn.0045abb2
push 4
mov ecx, 0x5f38c8
call fcn.004329f0
test eax, eax
je 0x40bfb2
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0x134]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea ecx, [esi + 0x4b0]
call fcn.0045abb2
push str.Leave_OnInitDialog___r_n
mov eax, 0x5f38b8
call fcn.004053d0
mov byte [esp + 0xec], 0x11
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c00b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe8], 0x10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe8], 0xe
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c05b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe8], 0xd
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 0x40c083
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe8], 0xc
mov eax, dword [esp + 0xd8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xd4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x78]
call fcn.00401fa0
mov byte [esp + 0xe8], 0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c102
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c12d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret